Class: phaction_constforce
Physics action that applies a constant force to a shell when run.
Source
src/xrPhysics/PHSimpleCallsScript.cpp, phaction_constforce binding.
Custom Constructor
phaction_constforce
Remarks
The action stores the target shell and force vector. The physics commander applies that force when the paired condition becomes true.
Extends
Constructors
Constructor
ts
new phaction_constforce(shell: physics_shell, force: vector): phaction_constforce;Create a constant-force physics action.
Parameters
| Parameter | Type | Description |
|---|---|---|
shell | physics_shell | Target physics shell. |
force | vector | Force vector to apply. |
Returns
phaction_constforce