Panda3D

Loading...
Searching...
No Matches
linearControlForce.I
Go to the documentation of this file.
1/**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file linearControlForce.I
10 * @author Dave Schuyler
11 * @date 2006
12 */
13
14/**
15 * encapsulating wrapper
16 */
17INLINE void LinearControlForce::
18 clear_physics_object() {
19 _physics_object = nullptr;
20}
21
22/**
23 * encapsulating wrapper
24 */
25INLINE void LinearControlForce::
26 set_physics_object(const PhysicsObject *po) {
27 _physics_object = po;
28}
29
30/**
31 * piecewise encapsulating wrapper
32 */
33INLINE CPT(PhysicsObject) LinearControlForce::
34get_physics_object() const {
35 return _physics_object;
36}
37
38/**
39 * encapsulating wrapper
40 */
41INLINE void LinearControlForce::
42set_vector(const LVector3& v) {
43 _fvec = v;
44}
45
46/**
47 * piecewise encapsulating wrapper
48 */
49INLINE void LinearControlForce::
50set_vector(PN_stdfloat x, PN_stdfloat y, PN_stdfloat z) {
51 _fvec.set(x, y, z);
52}
53
54/**
55 *
56 */
57INLINE LVector3 LinearControlForce::
58get_local_vector() const {
59 return _fvec;
60}
LinearControlForce::set_physics_object
void set_physics_object(const PhysicsObject *po)
encapsulating wrapper
Definition linearControlForce.I:26
LinearControlForce::clear_physics_object
void clear_physics_object()
encapsulating wrapper
Definition linearControlForce.I:18
PhysicsObject
A body on which physics will be applied.
Definition physicsObject.h:27