Physics Influencer ¶
The Physics Influencer allows a world object or prop to be affected by a Gravity Zone or Fluid Volume, as well as modify the center of mass of an object for those interactions, or for other uses such as vessel stability. Changes made to the active portions of the physics influencer can produce a wide variety of behaviors based on physical properties. All objects using a Physics influencer first need a Collider of some sort, as well as a Rigidbody, the latter of which will be added automatically if it doesn't already exist on the object.
UI¶
All three sections can be activated or deactivated by checking or unchecking the tickbox on their respective section header.
Change Center of Mass¶
Change Center of Mass straightforwardly allows you to modify the center of mass with a new transform. This can be any game object that's a child of the affected GameObject.
Center Of Mass-
Any child transform of the affected object. This allows you to reposition the center of mass of the entire game object, modifying it's sitting stability, center of inertia, and center of buoyancy as a byproduct.
Update Continuously:
blah blah blah
Buoyancy¶
Affects the physical properties and behavior in fluid of the affected GameObject. Density is an editor-only value and is only used to give you an expected density in g/m³. Volume is calculated as a function of the sum of all colliders on an object and its children in m³.
Recalculate Density and Volume-
Air Drag- coefficient of drag of unsubmerged portion while travelling straight
Air Angular Drag- coefficient of drag of unsubmerged portion while turning
Fluid Drag- coefficient of drag of submerged portion while travelling straight
Fluid Angular Drag- coefficient of drag of submerged portion while turning
Local Gravity¶
Force Align Upright- forces the object into upright relative to the direction of gravity instantly.
Gravity Factor- multiplier for uprighting force based on current experienced gravity.
Gentle Align Upright- Applies a force to the object to turn them upright relative to the direction of gravity.
Gentle Align Speed- Speed at which the object is returned to the aligned orientation.
Gentle Align Stability- this value is divided by the gentle align speed (with a floor of .0.1), dampening the object's uprighting motion.
Gentle Align Axis- a torque applied around the local X, Y, or Z axis.
Examples¶
There are currently no examples. If you'd like to add one, please contribute! Community contributions can be submitted to our Documentation Github.