fixed revolver actor rolling around
This commit is contained in:
parent
613e31658f
commit
c270a049b5
1 changed files with 3 additions and 0 deletions
|
|
@ -109,6 +109,9 @@ public class GameCore implements GameLogic {
|
|||
Revolver.CreatePhysicsController( ConvexMesh.Box(0.5f,0.75f,0.5f),200f);
|
||||
scene.Revolver = Revolver;
|
||||
PlayerActorID = "Player_Revolver";
|
||||
|
||||
physicsController = (RigidPhysicsController) Revolver.GetPhysicsController();
|
||||
RigidBody.RigidBodyRegister.get(physicsController.RigidBodyID).LockRotation();
|
||||
// if I put PlayerActorID = "Player_Revolver" it just crashes
|
||||
mesh.RegisterMesh();
|
||||
scene.AddActor(Musket);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue