Changeset 1593


Ignore:
Timestamp:
Jul 8, 2012, 6:59:11 PM (8 years ago)
Author:
touky
Message:

Some CIS FIX.

Location:
trunk/test
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/BtPhysTest.cpp

    r1592 r1593  
    7272        m_simulation = new Simulation();
    7373        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);
    7576
    7677        m_ground_object = new PhysicsObject(m_simulation);
  • trunk/test/PhysicObject.h

    r1592 r1593  
    2626        {
    2727                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);
    2930                m_physics.SetMass(.0f);
    3031                m_physics.InitBodyToRigid();
     
    3233        }
    3334
    34         PhysicsObject(Simulation* new_sim, float base_mass, vec3 &base_location)
     35        PhysicsObject(Simulation* new_sim, float base_mass, const vec3 &base_location)
    3536                : m_ready(false)
    3637        {
     
    4748
    4849                m_mesh.Compile(MeshRand[RandValue]);
    49                 m_physics.SetShapeToBox(vec3(2.0f));
     50                vec3 BoxSize = vec3(2.0f);
     51                m_physics.SetShapeToBox(BoxSize);
    5052                m_physics.SetMass(base_mass);
    5153                m_physics.SetBaseTransform(base_location);
Note: See TracChangeset for help on using the changeset viewer.