Skip to content

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

ParameterTypeDescription
shellphysics_shellTarget physics shell.
forcevectorForce vector to apply.

Returns

phaction_constforce

Overrides

CPHAction.constructor