Click or drag to resize

PhysicsBody Class

The base type for physics bodies, including static bodies and rigid bodies.
Inheritance Hierarchy

Namespace: Demo3D.Visuals
Assembly: Demo3D.Core (in Demo3D.Core.dll) Version: 19.00.00
Syntax
C#
public class PhysicsBody : IDisposable

The PhysicsBody type exposes the following members.

Properties
 NameDescription
Public propertyAabb The axis-aligned bounding box in world space.
Public propertyEnabled Whether the physics body is enabled in the physics world.
Public propertyGeometry The physics collision geometry that belongs to the physics body.
Public propertyGroups A copy of the list of collision groups that are prescribed to the physics body.
Public propertyIsDisposed Whether the body has been disposed.
Public propertyPosition The world-space position for the physics body.
Public propertyRotation The world-space rotation matrix for the physics body.
Public propertyTransform The world-space to local-space transformation matrix for the physics body.
Top
Methods
 NameDescription
Public methodAddGroup Prescribes the specified collision group to the physics body.
Public methodContainsGroup Whether the physics body has been prescribed the specified collision group.
Public methodDisposeReleases all resources used by the PhysicsBody
Protected methodDispose(Boolean)Releases the unmanaged resources used by the PhysicsBody and optionally releases the managed resources
Public methodRemoveGroup Unprescribes the specified collision group from the physics body.
Top
Fields
 NameDescription
Public fieldVisual The parent visual.
Top
Remarks
Provides a thin wrapper around IPhysicsObject.
See Also