Exemple #1
0
        public void CreateStatic(Vector3 pose, RigidBodyDescription description, Scene scene, ShapeDesc shape)
        {
            ActorDesc actorDesc = new ActorDesc();

            actorDesc.GlobalPosition = pose;
            actorDesc.Body           = null;
            description.ToNxActor(ref actorDesc);
            actorDesc.Shapes.Add(shape);
            Actor = scene.CreateActor(actorDesc);
        }
Exemple #2
0
        public void CreateDynamic(
            Vector3 pose,
            Matrix3 oritentaion,
            RigidBodyDescription description,
            Scene scene,
            ShapeDesc shape)
        {
            BodyDesc  bodyDesc  = new BodyDesc();
            ActorDesc actorDesc = new ActorDesc();

            description.ToNxActor(ref actorDesc, ref bodyDesc);
            actorDesc.Body              = bodyDesc;
            actorDesc.GlobalPosition    = pose;
            actorDesc.GlobalOrientation = oritentaion;
            actorDesc.Shapes.Add(shape);
            Actor = scene.CreateActor(actorDesc);
        }