Debian Codegraph @

physics/physics.h

raw symbols SCIP
1 /*
2 * $Logfile: /DescentIII/Main/Lib/PHYSICS.H $
3 * $Revision: 15 $
4 * $Date: 4/14/99 3:59a $
5 * $Author: Jeff $
6 *
7 * Descent III Physics Header
8 *
9 * $Log: /DescentIII/Main/Lib/PHYSICS.H $
10 *
11 * 15 4/14/99 3:59a Jeff
12 * fixed case mismatches in #includes
13 *
14 * 14 1/10/99 6:45a Jeff
15 * Changes made to get linux version to compile
16 *
17 * 13 12/21/98 1:39p Chris
18 * Matcens can hurt (or not hurt) players that are close to them
19 *
20 * 12 11/10/98 5:17p Jeff
21 * peppered in some more forcefeedback effects
22 *
23 * 11 10/16/98 3:39p Chris
24 * Improved the object linking system and AI and physics
25 *
26 * 10 10/15/98 3:26p Chris
27 * Fixed known ground plane issues and used PhysCalcGround everywhere
28 *
29 * 9 8/27/98 6:23p Jeff
30 * changed autoleveling in config so it is a slider...had to convert
31 * global from bool->uint8_t. Added fast headlight and mirrored surfaces to
32 * config menu
33 *
34 * 8 6/15/98 7:01a Chris
35 * Cleaned out DII stuff and added new PhysicsSim extern's
36 *
37 * 7 5/01/98 4:27p Chris
38 * Added externals for terrain and room autoleveling
39 *
40 * 6 4/16/98 6:50p Chris
41 *
42 * 5 2/19/98 6:17p Chris
43 * Added some debug info
44 *
45 * 4 1/20/98 5:27p Chris
46 * Added physics support for the vis. system
47 *
48 * 3 10/28/97 12:23p Chris
49 * Added a walking sim
50 *
51 * 2 9/11/97 12:43p Chris
52 * Added new support for face_physics_info from room.h. Also, changed how
53 * we detect portals. Also added recorded faces.
54 *
55 * 6 3/27/97 10:50a Chris
56 * Added bounce constant (PHYSICS_BOUNCE_UNLIMITED) for objects that can
57 * bounce forever
58 *
59 * 5 3/15/97 1:29p Chris
60 *
61 * $NoKeywords: $
62 */
63
64 #ifndef PHYSICS_H
65 #define PHYSICS_Hcxx . . $ `physics/physics.h:65:9`!
66
67 #include "findintersection.h"cxx . . $ `<file>/physics/findintersection.h`/
68 #include "object.h"cxx . . $ `<file>/Descent3/object.h`/
69 #include "vecmat.h"cxx . . $ `<file>/lib/vecmat.h`/
70 #include "viseffect.h"cxx . . $ `<file>/Descent3/viseffect.h`/
71
72 extern int Physics_normal_countercxx . . $ Physics_normal_counter.;
73 extern int Physics_normal_looping_countercxx . . $ Physics_normal_looping_counter.;
74 extern int Physics_walking_countercxx . . $ Physics_walking_counter.;
75 extern int Physics_walking_looping_countercxx . . $ Physics_walking_looping_counter.;
76 extern int Physics_vis_countercxx . . $ Physics_vis_counter.;
77
78 // The current strength of the world's gravity
79 extern float Gravity_strengthcxx . . $ Gravity_strength.;
80
81 #define PHYSICS_UNLIMITED_BOUNCEcxx . . $ `physics/physics.h:81:9`! (-1)
82
83 #ifdef _DEBUGcxx . . $ `<built-in>:480:9`!
84 extern int Physics_player_verbosecxx . . $ Physics_player_verbose.;
85 #endif
86
87 extern uint8_tcxx . . $ uint8_t# Default_player_terrain_levelingcxx . . $ Default_player_terrain_leveling.;
88 extern uint8_tcxx . . $ uint8_t# Default_player_room_levelingcxx . . $ Default_player_room_leveling.;
89
90 bool PhysicsDoSimRotcxx . . $ PhysicsDoSimRot(d5590f9f58c35daf).(objectcxx . . $ object# *obj, float frame_time, matrixcxx . . $ matrix# *orient, vectorcxx . . $ vector# *rotforce, vectorcxx . . $ vector# *rotvel, anglecxx . . $ angle# *turn_roll);
91 void PhysicsDoSimLinearcxx . . $ PhysicsDoSimLinear(33e639d8e7a28d49).(const objectcxx . . $ object# &obj, const vectorcxx . . $ vector# &pos, const vectorcxx . . $ vector# &force, vectorcxx . . $ vector# &velocity,
92 vectorcxx . . $ vector# &movementVec, vectorcxx . . $ vector# &movementPos, float simTime, int count);
93
94 extern int Physics_NumLinkedcxx . . $ Physics_NumLinked.;
95 extern int PhysicsLinkListcxx . . $ PhysicsLinkList.[MAX_OBJECTScxx . . $ `lib/object_external_struct.h:107:9`!];
96
97 // Simulate a physics object for this frame
98 void do_physics_simcxx . . $ do_physics_sim(419c470199a90a97).(objectcxx . . $ object# *obj);
99
100 // Quick sim for vis stuff
101 void do_vis_physics_simcxx . . $ do_vis_physics_sim(6089e83781d51a35).(vis_effectcxx . . $ vis_effect# *vis);
102
103 // Simulate a physics object for this frame
104 void do_walking_simcxx . . $ do_walking_sim(419c470199a90a97).(objectcxx . . $ object# *obj);
105
106 // Applies an instantaneous force on an object, resulting in an instantaneous
107 // change in velocity.
108 void phys_apply_forcecxx . . $ phys_apply_force(1d7af1ec00c1f7ea).(objectcxx . . $ object# *obj, vectorcxx . . $ vector# *force_vec, int16_tcxx . . $ int16_t# weapon_index = -1);
109
110 // Applies an instantaneous whack on an object, resulting in an instantaneous change in orientation.
111 // TODO: does nothing
112 void phys_apply_rotcxx . . $ phys_apply_rot(835e87111e401cce).(objectcxx . . $ object# *obj, vectorcxx . . $ vector# *force_vec);
113
114 // Determines the point and normal of the ground point
115 bool PhysCalcGroundcxx . . $ PhysCalcGround(85e3752e9562a225).(vectorcxx . . $ vector# *ground_point, vectorcxx . . $ vector# *ground_normal, objectcxx . . $ object# *obj, int ground_num);
116
117 // Linked objects arbitrary linking for things like weapons (unlike attached objects)
118 void DoPhysLinkedFramecxx . . $ DoPhysLinkedFrame(419c470199a90a97).(objectcxx . . $ object# *obj);
119
120 #endif