Changeset 1593
- Timestamp:
- Jul 8, 2012, 6:59:11 PM (10 years ago)
- Location:
- trunk/test
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/BtPhysTest.cpp
r1592 r1593 72 72 m_simulation = new Simulation(); 73 73 m_simulation->InitContext(); 74 m_simulation->SetGravity(vec3(.0f, -10.0f, .0f)); 74 vec3 NewGravity = vec3(.0f, -10.0f, .0f); 75 m_simulation->SetGravity(NewGravity); 75 76 76 77 m_ground_object = new PhysicsObject(m_simulation); -
trunk/test/PhysicObject.h
r1592 r1593 26 26 { 27 27 m_mesh.Compile("[sc#add afcb110 1 110 -.1]"); 28 m_physics.SetShapeToBox(vec3(110.f, 1.f, 110.f)); 28 vec3 BoxSize = vec3(110.f, 1.f, 110.f); 29 m_physics.SetShapeToBox(BoxSize); 29 30 m_physics.SetMass(.0f); 30 31 m_physics.InitBodyToRigid(); … … 32 33 } 33 34 34 PhysicsObject(Simulation* new_sim, float base_mass, vec3 &base_location)35 PhysicsObject(Simulation* new_sim, float base_mass, const vec3 &base_location) 35 36 : m_ready(false) 36 37 { … … 47 48 48 49 m_mesh.Compile(MeshRand[RandValue]); 49 m_physics.SetShapeToBox(vec3(2.0f)); 50 vec3 BoxSize = vec3(2.0f); 51 m_physics.SetShapeToBox(BoxSize); 50 52 m_physics.SetMass(base_mass); 51 53 m_physics.SetBaseTransform(base_location);
Note: See TracChangeset
for help on using the changeset viewer.