MotionController + ...
 
Notifications
Clear all

[Solved] MotionController + ActorController + A* Pathfinding Project

jpapon
(@jpapon)
New Member

I've been using these controllers and they've been great!

One small problem I'm running into when combining with A* Pathfinding Project - something weird is happening with gravity and my characters keep flying up in the air.

If I disable the Actor Controller, this goes away (and my character still moves, just without animations).

Actor Controller is set to "Use Transform", and stepping through the code, it looks like everything is fine.

I have a RigidBody attached to my char, but Use Gravity is disabled and Is Kinematic is enabled.

I'm just using the normal AIPath and Seeker from A* Pathfinding.

Has anyone used the controllers with either A* or standard NavMesh and experienced this gravity problem, or have an idea what might be causing the character to fly up?

 

Quote
Topic starter Posted : 08/01/2021 8:34 pm
jpapon
(@jpapon)
New Member

Nevermind, sorry. The problem was with the ground mask in A* Pathfinding project - apparently it has issues if you use "everything". Setting it to only my floor made gravity work correctly.

ReplyQuote
Topic starter Posted : 08/01/2021 10:22 pm
Tim liked
Tim
 Tim
(@timtryz)
Member Admin

Glad you found it.

ReplyQuote
Posted : 09/01/2021 8:12 pm
Share: