Krusty
New member
Hi there,
I recently purchased Behavior Designer Pro and was trying to use the RotateTowards action. I created a stacked action that is first using "Seek" with AStarAI pathfinding and then is supposed to rotate the character using "RotateTowards" once it reaches its destination. But it doesn't rotate, specifically if I try to get it to rotate using the Target game object reference. It works if I manually set the TargetRotation, but that defeats the purpose of having it rotate using the Target game object's transform.
Seek: has UpdateRotation set to true and "Destination_PerformingPlatform" set as its Target. This works and the character moves over the Recast Graph to get to its destination, but doesn't rotate the character to match "Destination_PerformingPlatform"'s rotation.
then
RotateTowards: has use2DPhysics set to false, maxRotationDelta set to 1 (default), arrivedAngle set to 0.5 (default), onlyY is set to true, and Target is set to "Destination_PerformingPlatform" (same as Seek). ""Destination_PerformingPlatform"'s transform rotation is set to (0, -90, 0). When character reaches the destination it doesn't rotate to -90 in Y, but it checks it as being successful in the Behavior Designer editor window. I have also tried unchecking the onlyY boolean value and increasing the maxRotationDelta to 180, but that didn't allow the character to rotate either.
Am I missing something or did I just find a bug? I'll attach some screenshots. Thanks!
- Krusty
I recently purchased Behavior Designer Pro and was trying to use the RotateTowards action. I created a stacked action that is first using "Seek" with AStarAI pathfinding and then is supposed to rotate the character using "RotateTowards" once it reaches its destination. But it doesn't rotate, specifically if I try to get it to rotate using the Target game object reference. It works if I manually set the TargetRotation, but that defeats the purpose of having it rotate using the Target game object's transform.
Seek: has UpdateRotation set to true and "Destination_PerformingPlatform" set as its Target. This works and the character moves over the Recast Graph to get to its destination, but doesn't rotate the character to match "Destination_PerformingPlatform"'s rotation.
then
RotateTowards: has use2DPhysics set to false, maxRotationDelta set to 1 (default), arrivedAngle set to 0.5 (default), onlyY is set to true, and Target is set to "Destination_PerformingPlatform" (same as Seek). ""Destination_PerformingPlatform"'s transform rotation is set to (0, -90, 0). When character reaches the destination it doesn't rotate to -90 in Y, but it checks it as being successful in the Behavior Designer editor window. I have also tried unchecking the onlyY boolean value and increasing the maxRotationDelta to 180, but that didn't allow the character to rotate either.
Am I missing something or did I just find a bug? I'll attach some screenshots. Thanks!
- Krusty