ricardojmendez / UnitySteer

Steering, obstacle avoidance and path following behaviors for the Unity Game Engine
https://numergent.com/tags/unitysteer/
Other
1.2k stars 275 forks source link

Additional fields added to vehicle component to enable optional combi… #64

Open spikything opened 4 years ago

spikything commented 4 years ago

…ning of RigidBody forces with steering forces, rather than simply moving a RigidBody when it is not set as 'kinematic'. This allows more intuitive behaviour of objects with rigid body physics which also want steering forces. This adds an extra tickbox (CombineRigidBodyForces) and an optional float field (RigidBodyPrescalar) to the AutonomousVehicle component panel, to enable non-kinematic RigidBodies to steer properly. This is disabled by default, so no default behaviour changes.

spikything commented 3 years ago

Adds an extra tickbox (CombineRigidBodyForces) and an optional float field (RigidBodyPrescalar) to the AutonomousVehicle component panel, to enable non-kinematic RigidBodies to steer properly. This is disabled by default, so no default behaviour changes. It works by combining, rather than conflicting with, any 'non-kinematic' rigid body forces with steering forces.

spikything commented 3 years ago

Builds and works for me though :)