Documentation
¶
Index ¶
- Variables
- func ReleasePhysxSDK()
- type PxScene
- func (this *PxScene) AddForce(id uint64, force Vector3)
- func (this *PxScene) ClearForce(id uint64)
- func (this *PxScene) CreateBoxDynamic(pos Vector3, halfExtents Vector3) (id uint64)
- func (this *PxScene) CreateBoxKinematic(pos Vector3, halfExtents Vector3) (id uint64)
- func (this *PxScene) CreateBoxStatic(pos Vector3, halfExtents Vector3) (id uint64)
- func (this *PxScene) CreateCapsuleDynamic(pos Vector3, radius, halfHeight float32) (id uint64)
- func (this *PxScene) CreateCapsuleKinematic(pos Vector3, radius, halfHeight float32) (id uint64)
- func (this *PxScene) CreateCapsuleStatic(pos Vector3, radius, halfHeight float32) (id uint64)
- func (this *PxScene) CreatePlane(yAxis float32) (id uint64)
- func (this *PxScene) CreateSphereDynamic(pos Vector3, radius float32) (id uint64)
- func (this *PxScene) CreateSphereKinematic(pos Vector3, radius float32) (id uint64)
- func (this *PxScene) CreateSphereStatic(pos Vector3, radius float32) (id uint64)
- func (this *PxScene) GetGlobalPostion(id uint64) (outPostionX, outPostionY, outPostionZ float32)
- func (this *PxScene) GetGlobalRotate(id uint64) (outRotateX, outRotateY, outRotateZ, outRotateW float32)
- func (this *PxScene) IsDynamicObj(id uint64) (ok bool)
- func (this *PxScene) IsStaticObj(id uint64) (ok bool)
- func (this *PxScene) Release()
- func (this *PxScene) RemoveActor(id uint64)
- func (this *PxScene) SetCurrentAngularDamping(value float32)
- func (this *PxScene) SetCurrentMaterial(staticFriction, dynamicFriction, restitution float32)
- func (this *PxScene) SetGlobalPostion(id uint64, pos Vector3)
- func (this *PxScene) SetGlobalRotate(id uint64, rotate Quat)
- func (this *PxScene) SetLinearVelocity(id uint64, velocity Vector3)
- func (this *PxScene) Update(elapsedTime float32)
- type Quat
- type Vector3
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCreateSceneFail = errors.New("create scene fail.")
View Source
var ErrNeedInitSDK = errors.New("physx sdk is not init.")
Functions ¶
func ReleasePhysxSDK ¶
func ReleasePhysxSDK()
Types ¶
type PxScene ¶
type PxScene struct {
// contains filtered or unexported fields
}
func (*PxScene) ClearForce ¶
func (*PxScene) CreateBoxDynamic ¶
func (*PxScene) CreateBoxKinematic ¶
func (*PxScene) CreateBoxStatic ¶
func (*PxScene) CreateCapsuleDynamic ¶
func (*PxScene) CreateCapsuleKinematic ¶
func (*PxScene) CreateCapsuleStatic ¶
func (*PxScene) CreatePlane ¶
func (*PxScene) CreateSphereDynamic ¶
func (*PxScene) CreateSphereKinematic ¶
func (*PxScene) CreateSphereStatic ¶
func (*PxScene) GetGlobalPostion ¶
func (*PxScene) GetGlobalRotate ¶
func (*PxScene) IsDynamicObj ¶
func (*PxScene) IsStaticObj ¶
func (*PxScene) RemoveActor ¶
func (*PxScene) SetCurrentAngularDamping ¶
func (*PxScene) SetCurrentMaterial ¶
func (*PxScene) SetGlobalPostion ¶
func (*PxScene) SetGlobalRotate ¶
func (*PxScene) SetLinearVelocity ¶
Click to show internal directories.
Click to hide internal directories.