Logo
公開メンバ関数 | 全メンバ一覧
SharpKmyPhysics.PhysicsBase クラス

公開メンバ関数

 PhysicsBase (IntPtr ptr)
 
void lockUpdate ()
 
void unlockUpdate ()
 
void setGravity (float x, float y, float z)
 
void removeRigidBody (RigidBody r)
 
void removeCollider (Collider c)
 
void removeVehicle (Vehicle v)
 
bool rayCast (SharpKmyMath.Vector3 from, SharpKmyMath.Vector3 to, UInt16 mask, RayCastHit hit)
 
bool rayCast (SharpKmyMath.Vector3 from, SharpKmyMath.Vector3 to, UInt16 mask, RayCastHit hit, PhysicsNotifyTarget self)
 
bool rayCast (SharpKmyMath.Vector3 from, SharpKmyMath.Vector3 to, UInt16 mask, RayCastHit hit, PhysicsNotifyTarget self, UInt16 type)
 
bool rayCast (SharpKmyMath.Vector3 from, SharpKmyMath.Vector3 to, UInt16 mask, RayCastHit hit, PhysicsNotifyTarget self, UInt16 type, int fellowId)
 
bool convexSweepTest (float radius, float height, SharpKmyMath.Vector3 from, SharpKmyMath.Vector3 to, UInt16 mask, RayCastHit hit)
 
bool convexSweepTest (float radius, float height, SharpKmyMath.Vector3 from, SharpKmyMath.Vector3 to, UInt16 mask, RayCastHit hit, PhysicsNotifyTarget self, UInt16 type)
 
bool convexSweepTest (float radius, float height, SharpKmyMath.Vector3 from, SharpKmyMath.Vector3 to, UInt16 mask, RayCastHit hit, PhysicsNotifyTarget self, UInt16 type, int fellowId)
 
Collider createBoxCollider (float halfWidth, float halfHeight, float halfDepth, SharpKmyMath.Matrix4 mtx, UInt16 group, UInt16 mask)
 
Collider createSphereCollider (float radius, SharpKmyMath.Matrix4 mtx, UInt16 group, UInt16 mask)
 
Collider createCapsuleCollider (float radius, float height, SharpKmyMath.Matrix4 mtx, UInt16 group, UInt16 mask, int axis)
 
Collider createTriMeshCollider (float[] vertices, UInt16[] indices, SharpKmyMath.Matrix4 mtx, SharpKmyMath.Vector3 scl, UInt16 group, UInt16 mask, int verticesCount, int indicesCount)
 
Collider createTriMeshCollider (System.Guid guid, SharpKmyMath.Matrix4 mtx, SharpKmyMath.Vector3 scl, UInt16 group, UInt16 mask)
 
Collider createCompoundCollider (float[] boxes, SharpKmyMath.Matrix4 mtx, SharpKmyMath.Vector3 scl, UInt16 group, UInt16 mask)
 
RigidBody createBoxRigidBody (float halfWidth, float halfHeight, float halfDepth, float mass, bool kinematic, SharpKmyMath.Matrix4 mtx, UInt16 group, UInt16 mask)
 
RigidBody createSphereRigidBody (float radius, float mass, bool kinematic, SharpKmyMath.Matrix4 mtx, UInt16 group, UInt16 mask)
 
RigidBody createCapsuleRigidBody (float radius, float height, float mass, bool kinematic, SharpKmyMath.Matrix4 mtx, UInt16 group, UInt16 mask, int axis)
 
RigidBody createCompoundRigidBody (float[] boxes, float mass, bool kinematic, SharpKmyMath.Matrix4 mtx, SharpKmyMath.Vector3 scl, UInt16 group, UInt16 mask)
 
RigidBody createTriMeshRigidBody (System.Guid guid, SharpKmyMath.Vector3 massCenter, float mass, bool kinematic, SharpKmyMath.Matrix4 mtx, SharpKmyMath.Vector3 scl, UInt16 group, UInt16 mask)
 
Vehicle createVehicle (float width, float height, float depth, float wheelRadius, float wheelWidth, float wheelFriction, float suspensionRestLength, float connectionHeight, float suspensionStiffness, float suspensionDamping, float suspensionCompression, float rigidbodyOffsetX, float rigidbodyOffsetY, float rigidbodyOffsetZ, float positionX, float positionY, float positionZ, float mass)
 
void update (float delta)
 
DebugDrawError getDebugDrawError ()
 

構築子と解体子

◆ PhysicsBase()

SharpKmyPhysics.PhysicsBase.PhysicsBase ( IntPtr  ptr)

メソッド詳解

◆ convexSweepTest() [1/3]

bool SharpKmyPhysics.PhysicsBase.convexSweepTest ( float  radius,
float  height,
SharpKmyMath.Vector3  from,
SharpKmyMath.Vector3  to,
UInt16  mask,
RayCastHit  hit 
)

◆ convexSweepTest() [2/3]

bool SharpKmyPhysics.PhysicsBase.convexSweepTest ( float  radius,
float  height,
SharpKmyMath.Vector3  from,
SharpKmyMath.Vector3  to,
UInt16  mask,
RayCastHit  hit,
PhysicsNotifyTarget  self,
UInt16  type 
)

◆ convexSweepTest() [3/3]

bool SharpKmyPhysics.PhysicsBase.convexSweepTest ( float  radius,
float  height,
SharpKmyMath.Vector3  from,
SharpKmyMath.Vector3  to,
UInt16  mask,
RayCastHit  hit,
PhysicsNotifyTarget  self,
UInt16  type,
int  fellowId 
)

◆ createBoxCollider()

Collider SharpKmyPhysics.PhysicsBase.createBoxCollider ( float  halfWidth,
float  halfHeight,
float  halfDepth,
SharpKmyMath.Matrix4  mtx,
UInt16  group,
UInt16  mask 
)

◆ createBoxRigidBody()

RigidBody SharpKmyPhysics.PhysicsBase.createBoxRigidBody ( float  halfWidth,
float  halfHeight,
float  halfDepth,
float  mass,
bool  kinematic,
SharpKmyMath.Matrix4  mtx,
UInt16  group,
UInt16  mask 
)

◆ createCapsuleCollider()

Collider SharpKmyPhysics.PhysicsBase.createCapsuleCollider ( float  radius,
float  height,
SharpKmyMath.Matrix4  mtx,
UInt16  group,
UInt16  mask,
int  axis 
)

◆ createCapsuleRigidBody()

RigidBody SharpKmyPhysics.PhysicsBase.createCapsuleRigidBody ( float  radius,
float  height,
float  mass,
bool  kinematic,
SharpKmyMath.Matrix4  mtx,
UInt16  group,
UInt16  mask,
int  axis 
)

◆ createCompoundCollider()

Collider SharpKmyPhysics.PhysicsBase.createCompoundCollider ( float[]  boxes,
SharpKmyMath.Matrix4  mtx,
SharpKmyMath.Vector3  scl,
UInt16  group,
UInt16  mask 
)

◆ createCompoundRigidBody()

RigidBody SharpKmyPhysics.PhysicsBase.createCompoundRigidBody ( float[]  boxes,
float  mass,
bool  kinematic,
SharpKmyMath.Matrix4  mtx,
SharpKmyMath.Vector3  scl,
UInt16  group,
UInt16  mask 
)

◆ createSphereCollider()

Collider SharpKmyPhysics.PhysicsBase.createSphereCollider ( float  radius,
SharpKmyMath.Matrix4  mtx,
UInt16  group,
UInt16  mask 
)

◆ createSphereRigidBody()

RigidBody SharpKmyPhysics.PhysicsBase.createSphereRigidBody ( float  radius,
float  mass,
bool  kinematic,
SharpKmyMath.Matrix4  mtx,
UInt16  group,
UInt16  mask 
)

◆ createTriMeshCollider() [1/2]

Collider SharpKmyPhysics.PhysicsBase.createTriMeshCollider ( float[]  vertices,
UInt16[]  indices,
SharpKmyMath.Matrix4  mtx,
SharpKmyMath.Vector3  scl,
UInt16  group,
UInt16  mask,
int  verticesCount,
int  indicesCount 
)

◆ createTriMeshCollider() [2/2]

Collider SharpKmyPhysics.PhysicsBase.createTriMeshCollider ( System.Guid  guid,
SharpKmyMath.Matrix4  mtx,
SharpKmyMath.Vector3  scl,
UInt16  group,
UInt16  mask 
)

◆ createTriMeshRigidBody()

RigidBody SharpKmyPhysics.PhysicsBase.createTriMeshRigidBody ( System.Guid  guid,
SharpKmyMath.Vector3  massCenter,
float  mass,
bool  kinematic,
SharpKmyMath.Matrix4  mtx,
SharpKmyMath.Vector3  scl,
UInt16  group,
UInt16  mask 
)

◆ createVehicle()

Vehicle SharpKmyPhysics.PhysicsBase.createVehicle ( float  width,
float  height,
float  depth,
float  wheelRadius,
float  wheelWidth,
float  wheelFriction,
float  suspensionRestLength,
float  connectionHeight,
float  suspensionStiffness,
float  suspensionDamping,
float  suspensionCompression,
float  rigidbodyOffsetX,
float  rigidbodyOffsetY,
float  rigidbodyOffsetZ,
float  positionX,
float  positionY,
float  positionZ,
float  mass 
)

◆ getDebugDrawError()

DebugDrawError SharpKmyPhysics.PhysicsBase.getDebugDrawError ( )

◆ lockUpdate()

void SharpKmyPhysics.PhysicsBase.lockUpdate ( )

◆ rayCast() [1/4]

bool SharpKmyPhysics.PhysicsBase.rayCast ( SharpKmyMath.Vector3  from,
SharpKmyMath.Vector3  to,
UInt16  mask,
RayCastHit  hit 
)

◆ rayCast() [2/4]

bool SharpKmyPhysics.PhysicsBase.rayCast ( SharpKmyMath.Vector3  from,
SharpKmyMath.Vector3  to,
UInt16  mask,
RayCastHit  hit,
PhysicsNotifyTarget  self 
)

◆ rayCast() [3/4]

bool SharpKmyPhysics.PhysicsBase.rayCast ( SharpKmyMath.Vector3  from,
SharpKmyMath.Vector3  to,
UInt16  mask,
RayCastHit  hit,
PhysicsNotifyTarget  self,
UInt16  type 
)

◆ rayCast() [4/4]

bool SharpKmyPhysics.PhysicsBase.rayCast ( SharpKmyMath.Vector3  from,
SharpKmyMath.Vector3  to,
UInt16  mask,
RayCastHit  hit,
PhysicsNotifyTarget  self,
UInt16  type,
int  fellowId 
)

◆ removeCollider()

void SharpKmyPhysics.PhysicsBase.removeCollider ( Collider  c)

◆ removeRigidBody()

void SharpKmyPhysics.PhysicsBase.removeRigidBody ( RigidBody  r)

◆ removeVehicle()

void SharpKmyPhysics.PhysicsBase.removeVehicle ( Vehicle  v)

◆ setGravity()

void SharpKmyPhysics.PhysicsBase.setGravity ( float  x,
float  y,
float  z 
)

◆ unlockUpdate()

void SharpKmyPhysics.PhysicsBase.unlockUpdate ( )

◆ update()

void SharpKmyPhysics.PhysicsBase.update ( float  delta)