instantreality 1.0

Component:
Physics
Status:
fully implemented
Structure type:
concrete
Standard:
Avalon

RigidObject

Wrapper node for ODE rigid bodies. See www.ode.org for detailed description of the underlying engine.

Inheritance

Code

XML encoding
<RigidObject logFeature=''
render='TRUE'
showBBox='FALSE'
bboxCenter='0 0 0'
bboxSize='-1 -1 -1'
invert='FALSE'
showProxyGeometry='FALSE'
translation='0 0 0'
scaleOrientation='0 0 1 0'
scale='1 1 1'
rotation='0 0 1 0'
center='0 0 0'
finiteRotationMode='FALSE'
finiteRotationAxis='0 0 0'
density='0.5'
gravityMode='TRUE'
enable='TRUE'
mass='1'
rotationVelocity='0 0 0'
translationVelocity='0 0 0'
 />
Classic encoding
RigidObject {
	logFeature [""]
	render TRUE
	showBBox FALSE
	bboxCenter 0 0 0
	bboxSize -1 -1 -1
	invert FALSE
	showProxyGeometry FALSE
	translation 0 0 0
	scaleOrientation 0 0 1 0
	scale 1 1 1
	rotation 0 0 1 0
	center 0 0 0
	finiteRotationMode FALSE
	finiteRotationAxis 0 0 0
	density 0.5
	gravityMode TRUE
	enable TRUE
	mass 1
	rotationVelocity 0 0 0
	translationVelocity 0 0 0
}

Interface

Filter: X3D only | Avalon only | All
id Name DataType PartType Default ValueType Description
MFNode addChildren MFNode inputOnly The addChildren event appends nodes to the children field of a grouping node. Any nodes passed to the addChildren inputOnly field that are already in the children list of the grouping node are ignored
SFVec3f bboxCenter SFVec3f initializeOnly 0 0 0 Bounding box center: position offset from origin of local coordinate system.
SFVec3f bboxSize SFVec3f initializeOnly -1 -1 -1 Bounding box size: automatically calculated, can be specified as an optimization or constraint.
SFVec3f center SFVec3f inputOutput 0 0 0 Translation offset from origin of local coordinate system.
MFNode children MFNode inputOutput Node field that contains a list of children nodes
SFFloat density SFFloat inputOutput 0.5 [0, inf] The objects density. Influences e.g. collision response.
SFBool enable SFBool inputOutput TRUE flag to enable or disable the object for physical simulation.
SFVec3f finiteRotationAxis SFVec3f inputOutput 0 0 0 This sets the finite rotation axis for a body. This is axis only has meaning when the finite rotation mode is set. If this axis is zero (0,0,0), full finite rotations are performed on the body.
SFBool finiteRotationMode SFBool inputOutput FALSE This function controls the way a body's orientation is updated at each time step. The mode argument can be:
SFVec3f force SFVec3f inputOnly A force applied to the body. This is the preferred wa of changing an objects velocity as it doesnt make the engine instable like setting velocities directly.
SFBool gravityMode SFBool inputOutput TRUE Sets whether the body is influenced by gravity.
SFBool invert SFBool inputOutput FALSE inverts matrix if true
MFString logFeature MFString inputOutput state, child, parent, route, eventIn, eventOut controls the logging of changes, state: log state changes (e.g. live), child: log child add/remove, parent: log parent add/remove, route: log route add/remove; eventIn: log receiving of events, eventOut: log sending of events: guiView, runtime system should create node-view, guiEdit: runtime system should create node-editeverything: log everything
SFFloat mass SFFloat initializeOnly 1 [0, inf) Object mass. Influences e.g. collision response.
SFMatrix4f matrix_changed SFMatrix4f outputOnly The matrix that defines the nodes transformation after an update.
SFNode metadata SFNode inputOutput MetadataObject container for payload metadata inside MetadataSet element
MFNode removeChildren MFNode inputOnly The removeChildren event removes nodes from the children fieldof the grouping node . Any nodes in the removeChildren event that are not in the children list of the grouping node are ignored
SFBool render SFBool inputOutput TRUE Flag to control the visibility of the node or subtree
SFRotation rotation SFRotation inputOutput 0 0 1 0 Orientation of children relative to local coordinate system.
SFVec3f rotationVelocity SFVec3f inputOutput 0 0 0 The current angular velocity. Setting this during simulation can lead to instability of the physics engine.
SFVec3f scale SFVec3f inputOutput 1 1 1 Non-uniform x-y-z scale of child coordinate system, adjusted by center and scaleOrientation.
SFRotation scaleOrientation SFRotation inputOutput 0 0 1 0 Preliminary rotation of coordinate system before scaling (to allow scaling around arbitrary orientations).
SFBool showBBox SFBool inputOutput FALSE Show Bounding Box of Subtree.
SFBool showProxyGeometry SFBool inputOutput FALSE show cartesian coordinate system
SFVec3f torque SFVec3f inputOnly A torque applied to the body. This is the preferred wa of changing an objects velocity as it doesnt make the engine instable like setting velocities directly.
SFVec3f translation SFVec3f inputOutput 0 0 0 Position of children relative to local coordinate system.
SFVec3f translationVelocity SFVec3f inputOutput 0 0 0 The current velocity vector. Setting this during simulation can lead to instability of the physics engine.