Struct DOTSDynamicBoneCollider_BufferElement
This is a collider for the DOTSDynamicBoneSystem
Namespace: DOTSDynamicBone.Collision
Assembly: cs.temp.dll.dll
Syntax
public struct DOTSDynamicBoneCollider_BufferElement : IDOTSDynamicBoneCollider, IBufferElementData
Remarks
This is a collider for the DOTSDynamicBoneSystem
Fields
aabb
Declaration
public Aabb aabb
Field Value
Type | Description |
---|---|
Aabb |
boneEntity
Declaration
public Entity boneEntity
Field Value
Type | Description |
---|---|
Entity | the bone entity associated with this collider |
collider
Declaration
public Unity.Physics.PhysicsCollider collider
Field Value
Type | Description |
---|---|
Unity.Physics.PhysicsCollider | Collider associated with the particle |
collisionEvent
Declaration
public AColliderCollisionEvent collisionEvent
Field Value
Type | Description |
---|---|
AColliderCollisionEvent | AColliderProperties generated with DOTS Dynamic Bone with PhysicsShape |
enabled
Declaration
public bool enabled
Field Value
Type | Description |
---|---|
System.Boolean | whether or not the collider is enabled. |
entity
Declaration
public Entity entity
Field Value
Type | Description |
---|---|
Entity | the collider entity |
fallbackToParicleRadiusOnNullPhysicsCollider
Declaration
public bool fallbackToParicleRadiusOnNullPhysicsCollider
Field Value
Type | Description |
---|---|
System.Boolean | set to true to use the Particle's m_Radius to perform collisions when the Particle's PhysicsCollider is null and UseParticlePhysicsCollider is true |
IsCollided
Declaration
public bool IsCollided
Field Value
Type | Description |
---|---|
System.Boolean | set this to true to have this collider always return true |
m_Height
Declaration
public float m_Height
Field Value
Type | Description |
---|---|
System.Single | The height of the capsule. |
m_Radius
Declaration
public float m_Radius
Field Value
Type | Description |
---|---|
System.Single | The radius of the sphere or capsule. |
persistant
Declaration
public bool persistant
Field Value
Type | Description |
---|---|
System.Boolean | set this to true to prevent the removal of this collider from the DynamicBuffer at the end of the frame |
transform
Declaration
public ParticleTransform transform
Field Value
Type | Description |
---|---|
ParticleTransform | the entity's Transform |
useParticlePhysicsCollider
Declaration
public bool useParticlePhysicsCollider
Field Value
Type | Description |
---|---|
System.Boolean | set to true to use the Unity.Physics.PhysicsCollider data stored within a Particle |
useUnityPhysicsCollider
Declaration
public bool useUnityPhysicsCollider
Field Value
Type | Description |
---|---|
System.Boolean | Set this to true to use the Unity.Physics.Collider in stead of the inernally stored values |
Properties
m_Bound
Declaration
public TransformsExtensions.Bound m_Bound { get; set; }
Property Value
Type | Description |
---|---|
TransformsExtensions.Bound | the collider collision bound type |
m_Center
Declaration
public float3 m_Center { get; set; }
Property Value
Type | Description |
---|---|
float3 | the collision center |
m_Direction
Declaration
public TransformsExtensions.Direction m_Direction { get; set; }
Property Value
Type | Description |
---|---|
TransformsExtensions.Direction | The axis of the collider's height. |
Null
Declaration
public static readonly DOTSDynamicBoneCollider_BufferElement Null { get; }
Property Value
Type | Description |
---|---|
DOTSDynamicBoneCollider_BufferElement | A Null Collider |
Methods
Collide(ref float3, Single)
Tests for a collision
Declaration
public bool Collide(ref float3 particlePosition, float particleRadius)
Parameters
Type | Name | Description |
---|---|---|
float3 | particlePosition | position |
System.Single | particleRadius | radius |
Returns
Type | Description |
---|---|
System.Boolean |