Rigid Body
Component, Subscription Handler, and Motion Type
Last updated
Component, Subscription Handler, and Motion Type
Last updated
Adds an angular impulse to this RigidBodyComponent.
Syntax[Sansar.Script.Interface] public AddAngularImpulse ( impulse)
Parameters
impulse
The impulse.
Returns
The return value is an internal event id.
RemarksThis asynchronous method queues the write then returns. To block until the write has occurred, pass this method to while in a coroutine.
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Adds an angular impulse to this RigidBodyComponent.
SyntaxParameters
impulse
The impulse.
handler
Handler to be called when the event completes.
Returns
The return value is an internal event id.
RemarksThis asynchronous method queues the write then returns. To block until the write has occurred, pass this method to while in a coroutine.
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Adds an angular impulse to this RigidBodyComponent.
SyntaxParameters
impulse
The impulse.
handler
Handler to be called when the event completes.
Returns
The return value is an internal event id.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Adds a linear impulse the the center of mass of this RigidBodyComponent.
SyntaxParameters
impulse
The impulse.
Returns
The return value is an internal event id.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Adds a linear impulse the the center of mass of this RigidBodyComponent.
SyntaxParameters
impulse
The impulse.
handler
Handler to be called when the event completes.
Returns
The return value is an internal event id.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Adds a linear impulse the the center of mass of this RigidBodyComponent.
SyntaxParameters
impulse
The impulse.
handler
Handler to be called when the event completes.
Returns
The return value is an internal event id.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Retrieves the component id for this RigidBodyComponent.
SyntaxValue
The id.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Syntax
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Retrieves the amount of damping applied to this object's angular motion.
SyntaxReturns
The angular damping factor.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Retrieves the angular velocity for this RigidBodyComponent.
SyntaxReturns
The velocity.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Retrieves the bounce of this RigidBodyComponent.
SyntaxReturns
The bounce factor.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
The can grab state for this RigidBodyComponent.
SyntaxReturns
A bool indicating if the object can be picked up.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Retrieves the center of mass of this object in local space.
SyntaxReturns
A Vector to the center of mass of this object, in the objects local space.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Retrieves the center of the collision shape for this object in local space.
SyntaxReturns
The center of the collision shape.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Retrieves the extents of the collision shape for this object in local space.
SyntaxReturns
The extents of the collision shape.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Retrieves the dynamic friction of this RigidBodyComponent.
SyntaxReturns
The dynamic friction.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Retrieves what factor of the world's gravity is applied to this object.
SyntaxReturns
The gravity factor.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Data about who is holding this RigidBodyComponent.
SyntaxReturns
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Retrieves the moment of inertia for this object.
SyntaxReturns
A Vector representation of the inverse moment of inertia.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Retrieves the amount of damping applied to this object's linear motion.
SyntaxReturns
The linear damping factor.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Retrieves the linear velocity for this RigidBodyComponent.
SyntaxReturns
The velocity.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Retrieves the mass of this RigidBodyComponent.
SyntaxReturns
The mass.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
The motion type for this RigidBodyComponent.
SyntaxReturns
A RigidBodyMotionType enum for the motion type.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Retrieves the orientation of this RigidBodyComponent.
SyntaxReturns
The orientation.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Retrieves the position of this RigidBodyComponent.
SyntaxReturns
The position.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Data about who is sitting on this RigidBodyComponent.
SyntaxReturns
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Retrieves the static friction of this RigidBodyComponent.
SyntaxReturns
The static friction.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Whether this rigidbody is dynamic.
SyntaxReturns
True if this is a dynamic object.
RemarksDeprecated. Use GetMotionType() instead.
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Whether this RigidBodyComponent is a TriggerVolume.
SyntaxReturns
True if this RigidBodyComponent is a TriggerVolume.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
This RigidBodyComponent name, as specified in the editor.
SyntaxValue
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Force any agent holding this object to drop it.
Syntax
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Force any agent holding this object to drop it.
SyntaxParameters
handler
Handler to be called when the event completes.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Sets the amount of damping to apply to this object's angular motion.
SyntaxParameters
angularDamping
The angular damping factor. Default value is 0.
Returns
The return value is an internal event id.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Sets the amount of damping to apply to this object's angular motion.
SyntaxParameters
angularDamping
The angular damping factor. Default value is 0.
handler
Handler to be called when the event completes.
Returns
The return value is an internal event id.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Sets the amount of damping to apply to this object's angular motion.
SyntaxParameters
angularDamping
The angular damping factor. Default value is 0.
handler
Handler to be called when the event completes.
Returns
The return value is an internal event id.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Sets the angular velocity for this RigidBodyComponent. Angular velocity is clamped between -100m/s and 100m/s.
SyntaxParameters
velocity
The velocity.
Returns
The return value is an internal event id.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Sets the angular velocity for this RigidBodyComponent.
SyntaxParameters
velocity
The velocity.
handler
Handler to be called when the event completes.
Returns
The return value is an internal event id.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Sets the angular velocity for this RigidBodyComponent. Angular velocity is clamped between -100m/s and 100m/s.
SyntaxParameters
velocity
The velocity.
handler
Handler to be called when the event completes.
Returns
The return value is an internal event id.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Sets the bounce of this RigidBodyComponent.
SyntaxParameters
bounce
The bounce factor. Value should be between 0 and 1 (inclusive)
Returns
The return value is an internal event id.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Sets the bounce of this RigidBodyComponent.
SyntaxParameters
bounce
The bounce factor. Value should be between 0 and 1 (inclusive)
handler
Handler to be called when the event completes.
Returns
The return value is an internal event id.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Sets the bounce of this RigidBodyComponent.
SyntaxParameters
bounce
The bounce factor. Value should be between 0 and 1 (inclusive)
handler
Handler to be called when the event completes.
Returns
The return value is an internal event id.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Sets the can grab state for this rigidbody.
SyntaxParameters
canGrab
Boolean value to indicate if the rigid body can be grabbed.
Returns
The return value is an internal event id.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Sets the can grab state for this rigidbody.
SyntaxParameters
canGrab
Boolean value to indicate if the rigid body can be grabbed.
handler
Handler to be called when the event completes.
Returns
The return value is an internal event id.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Sets the center of mass of this object in local space.
SyntaxParameters
centerOfMass
A Vector to the center of mass of this object, in the objects local space.
Returns
The return value is an internal event id.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Sets the center of mass of this object in local space.
SyntaxParameters
centerOfMass
A Vector to the center of mass of this object, in the objects local space.
handler
Handler to be called when the event completes.
Returns
The return value is an internal event id.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Sets the center of mass of this object in local space.
SyntaxParameters
centerOfMass
A Vector to the center of mass of this object, in the objects local space.
handler
Handler to be called when the event completes.
Returns
The return value is an internal event id.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Sets the dynamic friction of this RigidBodyComponent.
SyntaxParameters
dynamicFriction
The dynamic friction. Value should be between 0 and 1 (inclusive)
Returns
The return value is an internal event id.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Sets the dynamic friction of this RigidBodyComponent.
SyntaxParameters
dynamicFriction
The dynamic friction. Value should be between 0 and 1 (inclusive)
handler
Handler to be called when the event completes.
Returns
The return value is an internal event id.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Sets the dynamic friction of this RigidBodyComponent.
SyntaxParameters
dynamicFriction
The dynamic friction. Value should be between 0 and 1 (inclusive)
handler
Handler to be called when the event completes.
Returns
The return value is an internal event id.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Sets what factor of the world's gravity is applied to this object.
SyntaxParameters
gravityFactor
The gravityFactor. Default value is 1, range is -2 to 2
Returns
The return value is an internal event id.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Sets what factor of the world's gravity is applied to this object.
SyntaxParameters
gravityFactor
The gravityFactor. Default value is 1, range is -2 to 2
handler
Handler to be called when the event completes.
Returns
The return value is an internal event id.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Sets what factor of the world's gravity is applied to this object.
SyntaxParameters
gravityFactor
The gravityFactor. Default value is 1, range is -2 to 2
handler
Handler to be called when the event completes.
Returns
The return value is an internal event id.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Sets the moment of inertia for this object.
SyntaxParameters
inverseInertia
A Vector representation of the inverse moment of inertia for this object in world space.
Returns
The return value is an internal event id.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Sets the moment of inertia for this object.
SyntaxParameters
inverseInertia
A Vector representation of the inverse moment of inertia for this object in world space.
handler
Handler to be called when the event completes.
Returns
The return value is an internal event id.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Sets the amount of damping to apply to this object's linear motion.
SyntaxParameters
linearDamping
The linear damping factor. Default value is 0.
Returns
The return value is an internal event id.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Sets the amount of damping to apply to this object's linear motion.
SyntaxParameters
linearDamping
The linear damping factor. Default value is 0.
handler
Handler to be called when the event completes.
Returns
The return value is an internal event id.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Sets the amount of damping to apply to this object's linear motion.
SyntaxParameters
linearDamping
The linear damping factor. Default value is 0.
handler
Handler to be called when the event completes.
Returns
The return value is an internal event id.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Sets the linear velocity for this RigidBodyComponent. Linear velocity is clamped between -200m/s and 200m/s.
SyntaxParameters
velocity
The velocity.
Returns
The return value is an internal event id.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Sets the linear velocity for this RigidBodyComponent.
SyntaxParameters
velocity
The velocity.
handler
Handler to be called when the event completes.
Returns
The return value is an internal event id.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Sets the linear velocity for this RigidBodyComponent. Linear velocity is clamped between -200m/s and 200m/s.
SyntaxParameters
velocity
The velocity.
handler
Handler to be called when the event completes.
Returns
The return value is an internal event id.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Sets the mass of this RigidBodyComponent.
SyntaxParameters
mass
The mass.
Returns
The return value is an internal event id.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Sets the mass of this RigidBodyComponent.
SyntaxParameters
mass
The mass.
handler
Handler to be called when the event completes.
Returns
The return value is an internal event id.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Sets the mass of this RigidBodyComponent.
SyntaxParameters
mass
The mass.
handler
Handler to be called when the event completes.
Returns
The return value is an internal event id.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Sets the motion type for this rigidbody.
SyntaxParameters
motionType
The motion type.
Returns
The return value is an internal event id.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Sets the motion type for this rigidbody.
SyntaxParameters
motionType
The motion type.
handler
Handler to be called when the event completes.
Returns
The return value is an internal event id.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Sets the motion type for this rigidbody.
SyntaxParameters
motionType
The motion type.
handler
Handler to be called when the event completes.
Returns
The return value is an internal event id.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Sets the orientation of this RigidBodyComponent.
SyntaxParameters
orientation
The orientation.
Returns
The return value is an internal event id.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Sets the orientation of this $className$.
SyntaxParameters
orientation
The orientation.
Returns
The return value is an internal event id.
RemarksDeprecated. Use SetOrientation(Quaternion) instead.
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Sets the orientation of this RigidBodyComponent.
SyntaxParameters
orientation
The orientation.
handler
Handler to be called when the event completes.
Returns
The return value is an internal event id.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Sets the orientation of this RigidBodyComponent.
SyntaxParameters
orientation
The orientation.
handler
Handler to be called when the event completes.
Returns
The return value is an internal event id.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Sets the orientation of this $className$.
SyntaxParameters
orientation
The orientation.
handler
Handler to be called when the event completes.
Returns
The return value is an internal event id.
RemarksDeprecated. Use SetOrientation(Quaternion) instead.
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Sets the orientation of this $className$.
SyntaxParameters
orientation
The orientation.
handler
Handler to be called when the event completes.
Returns
The return value is an internal event id.
RemarksDeprecated. Use SetOrientation(Quaternion) instead.
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Sets the position of this RigidBodyComponent.
SyntaxParameters
position
The position.
Returns
The return value is an internal event id.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Sets the position of this RigidBodyComponent.
SyntaxParameters
position
The position.
handler
Handler to be called when the event completes.
Returns
The return value is an internal event id.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Sets the position of this RigidBodyComponent.
SyntaxParameters
position
The position.
handler
Handler to be called when the event completes.
Returns
The return value is an internal event id.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Sets the static friction of this RigidBodyComponent.
SyntaxParameters
staticFriction
The static friction. Value should be between 0 and 1 (inclusive)
Returns
The return value is an internal event id.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Sets the static friction of this RigidBodyComponent.
SyntaxParameters
staticFriction
The static friction. Value should be between 0 and 1 (inclusive)
handler
Handler to be called when the event completes.
Returns
The return value is an internal event id.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Sets the static friction of this RigidBodyComponent.
SyntaxParameters
staticFriction
The static friction. Value should be between 0 and 1 (inclusive)
handler
Handler to be called when the event completes.
Returns
The return value is an internal event id.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Subscribes to Collision Events.
SyntaxParameters
EventType
The type of collision which occurred.
callback
Callback which is executed when the event completes.
persistent
Optional, set to false to unsubscribe after one event.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Subscribes to Collision Events.
SyntaxSee Also
Parameters
EventType
The type of collision which occurred.
callback
Callback which is executed when the event completes.
persistent
Optional, set to false to unsubscribe after one event.
Returns
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Subscribes to Collision Events.
SyntaxParameters
EventType
The type of collision which occurred.
HitComponentId
The id of the rigid body component or character that was hit.
callback
Callback which is executed when the event completes.
persistent
Optional, set to false to unsubscribe after one event.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Subscribes to Collision Events.
SyntaxSee Also
Parameters
EventType
The type of collision which occurred.
HitComponentId
The id of the rigid body component or character that was hit.
callback
Callback which is executed when the event completes.
persistent
Optional, set to false to unsubscribe after one event.
Returns
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Subscribes to HeldObject Events.
SyntaxSee Also
Parameters
HeldObjectEvent
The type of held object event which occurred.
callback
Callback which is executed when the event completes.
persistent
Optional, set to false to unsubscribe after one event.
Returns
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Subscribes to SitObject Events.
SyntaxSee Also
Parameters
SitObjectEvent
The type of sit event which occurred.
callback
Callback which is executed when the event completes.
persistent
Optional, set to false to unsubscribe after one event.
Returns
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
A string representation of this object.
SyntaxReturns
A string representation of this object.
RemarksThe format of this string may change between releases.
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Handler for rigid body events.
Parameters
EventType
The type of collision which occurred.
ComponentId
The id of the rigid body component.
HitComponentId
The id of the rigid body component or character that was hit.
HitObject
Phase
used by trigger events to determine if trigger enter or exit occurred
HitControlPoint
The specific control point hit, if any
Namespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Type of motion that can be applied to a rigid body.
[Sansar.Script.Interface] public enum RigidBodyMotionType
Documentation for this section has not yet been entered.
MotionTypeDynamic
Dynamic. This object is fully affected by the physics simulation.
MotionTypeKeyframed
Keyframed. This object has its position and velocity directly controlled by scripts.
MotionTypeStatic
Static. This object never moves.
Namespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
This asynchronous method queues the write then returns. To block until the write has occurred, pass this method to while in a coroutine.
[Sansar.Script.Interface] public AddLinearImpulse ( impulse)
This asynchronous method queues the write then returns. To block until the write has occurred, pass this method to while in a coroutine.
This asynchronous method queues the write then returns. To block until the write has occurred, pass this method to while in a coroutine.
This asynchronous method queues the write then returns. To block until the write has occurred, pass this method to while in a coroutine.
[Sansar.Script.Interface] public GetAngularDamping ()
[Sansar.Script.Interface] public GetAngularVelocity ()
[Sansar.Script.Interface] public GetBounce ()
[Sansar.Script.Interface] public GetCanGrab ()
[Sansar.Script.Interface] public GetCenterOfMass ()
[Sansar.Script.Interface] public GetColliderCenter ()
[Sansar.Script.Interface] public GetColliderExtents ()
[Sansar.Script.Interface] public GetDynamicFriction ()
[Sansar.Script.Interface] public GetGravityFactor ()
[Sansar.Script.Interface] public GetHeldObjectInfo ()
A struct.
[Sansar.Script.Interface] public GetInverseInertia ()
[Sansar.Script.Interface] public GetLinearDamping ()
[Sansar.Script.Interface] public GetLinearVelocity ()
[Sansar.Script.Interface] public GetMass ()
[Sansar.Script.Interface] public GetPosition ()
[Sansar.Script.Interface] public [] GetSitObjectInfo ()
A struct.
[Sansar.Script.Interface] public GetStaticFriction ()
[Sansar.Script.Interface] [System.Obsolete("Use GetMotionType()", false)] public IsDynamic ()
[Sansar.Script.Interface] public IsTriggerVolume ()
TriggerVolumes can be moved through and generate collision events instead of normal collision events.
[get: Sansar.Script.Interface] public Name { get; }
[Sansar.Script.Interface] public ReleaseHeldObject ()
[Sansar.Script.Interface] public SetAngularDamping ( angularDamping)
This asynchronous method queues the write then returns. To block until the write has occurred, pass this method to while in a coroutine.
This asynchronous method queues the write then returns. To block until the write has occurred, pass this method to while in a coroutine.
This asynchronous method queues the write then returns. To block until the write has occurred, pass this method to while in a coroutine.
[Sansar.Script.Interface] public SetAngularVelocity ( velocity)
This asynchronous method queues the write then returns. Subsequent calls to will return the previous velocity until the write occurs. To block until the write has occurred, pass this method to while in a coroutine.
This asynchronous method queues the write then returns. Subsequent calls to will return the previous velocity until the write occurs. To block until the write has occurred, pass this method to while in a coroutine.
This asynchronous method queues the write then returns. Subsequent calls to will return the previous velocity until the write occurs. To block until the write has occurred, pass this method to while in a coroutine.
[Sansar.Script.Interface] public SetBounce ( bounce)
This asynchronous method queues the write then returns. To block until the write has occurred, pass this method to while in a coroutine.
This asynchronous method queues the write then returns. To block until the write has occurred, pass this method to while in a coroutine.
This asynchronous method queues the write then returns. To block until the write has occurred, pass this method to while in a coroutine.
[Sansar.Script.Interface] public SetCanGrab ( canGrab)
This method will throw an exception if the rigid body has the static motion type. This asynchronous method queues the write then returns. To block until the write has occurred, pass this method to while in a coroutine.
This method will throw an exception if the rigid body has the static motion type. This asynchronous method queues the write then returns. To block until the write has occurred, pass this method to while in a coroutine.
[Sansar.Script.Interface] public SetCenterOfMass ( centerOfMass)
This asynchronous method queues the write then returns. To block until the write has occurred, pass this method to while in a coroutine.
This asynchronous method queues the write then returns. To block until the write has occurred, pass this method to while in a coroutine.
This asynchronous method queues the write then returns. To block until the write has occurred, pass this method to while in a coroutine.
[Sansar.Script.Interface] public SetDynamicFriction ( dynamicFriction)
This asynchronous method queues the write then returns. To block until the write has occurred, pass this method to while in a coroutine.
This asynchronous method queues the write then returns. To block until the write has occurred, pass this method to while in a coroutine.
This asynchronous method queues the write then returns. To block until the write has occurred, pass this method to while in a coroutine.
[Sansar.Script.Interface] public SetGravityFactor ( gravityFactor)
This asynchronous method queues the write then returns. To block until the write has occurred, pass this method to while in a coroutine.
This asynchronous method queues the write then returns. To block until the write has occurred, pass this method to while in a coroutine.
This asynchronous method queues the write then returns. To block until the write has occurred, pass this method to while in a coroutine.
[Sansar.Script.Interface] public SetInverseInertia ( inverseInertia)
Setting this to zero in the x and y components, for example, will give this object infinite inertia on the x and y axes and only permit it to rotate around the z axis. This asynchronous method queues the write then returns. To block until the write has occurred, pass this method to while in a coroutine.
Setting this to zero in the x and y components, for example, will give this object infinite inertia on the x and y axes and only permit it to rotate around the z axis. This asynchronous method queues the write then returns. To block until the write has occurred, pass this method to while in a coroutine.
[Sansar.Script.Interface] public SetLinearDamping ( linearDamping)
This asynchronous method queues the write then returns. To block until the write has occurred, pass this method to while in a coroutine.
This asynchronous method queues the write then returns. To block until the write has occurred, pass this method to while in a coroutine.
This asynchronous method queues the write then returns. To block until the write has occurred, pass this method to while in a coroutine.
[Sansar.Script.Interface] public SetLinearVelocity ( velocity)
This asynchronous method queues the write then returns. Subsequent calls to will return the previous velocity until the write occurs. To block until the write has occurred, pass this method to while in a coroutine.
This asynchronous method queues the write then returns. Subsequent calls to will return the previous velocity until the write occurs. To block until the write has occurred, pass this method to while in a coroutine.
This asynchronous method queues the write then returns. Subsequent calls to will return the previous velocity until the write occurs. To block until the write has occurred, pass this method to while in a coroutine.
[Sansar.Script.Interface] public SetMass ( mass)
This asynchronous method queues the write then returns. To block until the write has occurred, pass this method to while in a coroutine.
This asynchronous method queues the write then returns. To block until the write has occurred, pass this method to while in a coroutine.
This asynchronous method queues the write then returns. To block until the write has occurred, pass this method to while in a coroutine.
This asynchronous method queues the write then returns. To block until the write has occurred, pass this method to while in a coroutine.
This asynchronous method queues the write then returns. To block until the write has occurred, pass this method to while in a coroutine.
This asynchronous method queues the write then returns. To block until the write has occurred, pass this method to while in a coroutine.
This asynchronous method queues the write then returns. To block until the write has occurred, pass this method to while in a coroutine.
[Sansar.Script.Interface] [System.Obsolete("Use SetOrientation(Quaternion)", false)] public SetOrientation ( orientation)
This asynchronous method queues the write then returns. To block until the write has occurred, pass this method to while in a coroutine.
This asynchronous method queues the write then returns. To block until the write has occurred, pass this method to while in a coroutine.
[Sansar.Script.Interface] public SetPosition ( position)
This asynchronous method queues the write then returns. To block until the write has occurred, pass this method to while in a coroutine.
This asynchronous method queues the write then returns. To block until the write has occurred, pass this method to while in a coroutine.
This asynchronous method queues the write then returns. To block until the write has occurred, pass this method to while in a coroutine.
[Sansar.Script.Interface] public SetStaticFriction ( staticFriction)
This asynchronous method queues the write then returns. To block until the write has occurred, pass this method to while in a coroutine.
This asynchronous method queues the write then returns. To block until the write has occurred, pass this method to while in a coroutine.
This asynchronous method queues the write then returns. To block until the write has occurred, pass this method to while in a coroutine.
An that can be used to cancel the subscription.
An that can be used to cancel the subscription.
An that can be used to cancel the subscription.
An that can be used to cancel the subscription.
[Sansar.Script.Interface] public override ToString ()
The that was hit.