Class: _Physics
Physics Engine
Not Exported
Constructors
Properties
Accessors
Methods
Constructors
constructor
• new _Physics(): _Physics
Returns
Defined in
packages/physics/Physics.ts:40
Properties
TEMP_TRANSFORM
• TEMP_TRANSFORM: btTransform
Defined in
packages/physics/Physics.ts:38
Accessors
maxSubSteps
• get
maxSubSteps(): number
Returns
number
Defined in
packages/physics/Physics.ts:59
• set
maxSubSteps(value
): void
Parameters
Name | Type |
---|---|
value | number |
Returns
void
Defined in
packages/physics/Physics.ts:62
fixedTimeStep
• get
fixedTimeStep(): number
Returns
number
Defined in
packages/physics/Physics.ts:66
• set
fixedTimeStep(value
): void
Parameters
Name | Type |
---|---|
value | number |
Returns
void
Defined in
packages/physics/Physics.ts:69
isStop
• get
isStop(): boolean
Returns
boolean
Defined in
packages/physics/Physics.ts:73
• set
isStop(value
): void
Parameters
Name | Type |
---|---|
value | boolean |
Returns
void
Defined in
packages/physics/Physics.ts:77
gravity
• get
gravity(): Vector3
Returns
Vector3
Defined in
packages/physics/Physics.ts:85
• set
gravity(gravity
): void
Parameters
Name | Type |
---|---|
gravity | Vector3 |
Returns
void
Defined in
packages/physics/Physics.ts:81
world
• get
world(): btDiscreteDynamicsWorld
Returns
Defined in
packages/physics/Physics.ts:89
isInited
• get
isInited(): boolean
Returns
boolean
Defined in
packages/physics/Physics.ts:116
Methods
init
▸ init(): Promise
<void
>
Init Physics Engine
Returns
Promise
<void
>
Defined in
packages/physics/Physics.ts:45
update
▸ update(): void
Returns
void
Defined in
packages/physics/Physics.ts:133
addRigidbody
▸ addRigidbody(rigidBody
): void
Parameters
Name | Type |
---|---|
rigidBody | Rigidbody |
Returns
void
Defined in
packages/physics/Physics.ts:145
removeRigidbody
▸ removeRigidbody(rigidBody
): void
Parameters
Name | Type |
---|---|
rigidBody | Rigidbody |
Returns
void
Defined in
packages/physics/Physics.ts:149
checkBound
▸ checkBound(body
): void
Parameters
Name | Type |
---|---|
body | Rigidbody |
Returns
void