Struct PhysicsConstrainedBodyPair
A pair of bodies with some constraint between them (either a joint or a motor)
Namespace: Unity.Physics
Syntax
public struct PhysicsConstrainedBodyPair : IComponentData
Constructors
PhysicsConstrainedBodyPair(Entity, Entity, Boolean)
Declaration
public PhysicsConstrainedBodyPair(Entity entityA, Entity entityB, bool enableCollision)
Parameters
Type | Name | Description |
---|---|---|
Entity | entityA | |
Entity | entityB | |
Boolean | enableCollision |
Fields
EnableCollision
Specifies whether the two bodies in the pair should generate contact events.
Declaration
public int EnableCollision
Field Value
Type | Description |
---|---|
Int32 |
Properties
EntityA
The first entity in the pair.
Declaration
public Entity EntityA { get; }
Property Value
Type | Description |
---|---|
Entity |
EntityB
The second entity in the pair.
Declaration
public Entity EntityB { get; }
Property Value
Type | Description |
---|---|
Entity |