Class: phcondition_expireonstep
Physics condition that expires on the selected step.
Source
src/xrPhysics/PHSimpleCallsScript.cpp, phcondition_expireonstep binding.
Custom Constructor
phcondition_expireonstep
Remarks
Subclass of phcondition_callonstep used by the physics commander for calls that should be considered true while expiring on the configured step.
Extends
Constructors
Constructor
new phcondition_expireonstep(): phcondition_expireonstep;Create an expiring physics step condition.
Returns
phcondition_expireonstep
Overrides
phcondition_callonstep.constructor
Methods
set_global_time_ms()
set_global_time_ms(time: number): void;Set the absolute game time in milliseconds that must be reached.
Parameters
| Parameter | Type | Description |
|---|---|---|
time | number | Absolute global time in milliseconds. |
Returns
void
Inherited from
phcondition_callonstep.set_global_time_ms
set_global_time_s()
set_global_time_s(time: number): void;Set the absolute game time in seconds that must be reached.
Parameters
| Parameter | Type | Description |
|---|---|---|
time | number | Absolute global time in seconds. |
Returns
void
Inherited from
phcondition_callonstep.set_global_time_s
set_step()
set_step(step: number): void;Set the absolute physics step that must be reached.
Parameters
| Parameter | Type | Description |
|---|---|---|
step | number | Absolute physics step number. |
Returns
void
Inherited from
phcondition_callonstep.set_step
set_steps_interval()
set_steps_interval(steps: number): void;Set the condition to become true after a number of physics steps.
Parameters
| Parameter | Type | Description |
|---|---|---|
steps | number | Step count from the current physics world step. |
Returns
void
Inherited from
phcondition_callonstep.set_steps_interval
set_time_interval_ms()
set_time_interval_ms(time: number): void;Set the condition to become true after a millisecond interval.
Parameters
| Parameter | Type | Description |
|---|---|---|
time | number | Interval in milliseconds. |
Returns
void
Inherited from
phcondition_callonstep.set_time_interval_ms
set_time_interval_s()
set_time_interval_s(time: number): void;Set the condition to become true after a second interval.
Parameters
| Parameter | Type | Description |
|---|---|---|
time | number | Interval in seconds. |
Returns
void