LinearControlForce

class LinearControlForce

Bases: LinearForce

Simple directed vector force. This force is different from the others in that it can be global and still only affect a single object. That might not make sense for a physics simulation, but it’s very handy for a game. I.e. this is the force applied by user on the selected object.

Inheritance diagram

Inheritance diagram of LinearControlForce

explicit LinearControlForce(PhysicsObject const *po = 0, PN_stdfloat a = 1.0, bool mass = false)
LinearControlForce(LinearControlForce const &copy)

Vector Constructor

Copy Constructor

void clear_physics_object(void)

encapsulating wrapper

static TypeHandle get_class_type(void)
LVector3 get_local_vector(void) const
ConstPointerTo<PhysicsObject> get_physics_object(void) const

piecewise encapsulating wrapper

void set_physics_object(PhysicsObject const *po)

encapsulating wrapper

void set_vector(LVector3 const &v)
void set_vector(PN_stdfloat x, PN_stdfloat y, PN_stdfloat z)

encapsulating wrapper

piecewise encapsulating wrapper