#Kinematic and gravity

1 messages · Page 1 of 1 (latest)

upper dove
#

How do I change if the body is kinematic and if gravity affects it from code?

hardy perch
upper dove
#

I did mean ECS

hardy perch
#

I've not tried it personally, I would take a look at what the differences are between the entities produced by different authoring setups.

The docs mention PhysicsGravityFactor as an optional override to scale gravity, PhysicsVelocity being optional where removing it makes the body static. Also PhysicsMass has a static method called CreateKinematic, so I presume you can use that to create a mass component that makes the body kinematic

upper dove
#

Thanks!

steady agate