UHSampleGame.CoreObjects.StaticModel.SetupModel C# (CSharp) Method

SetupModel() protected method

protected SetupModel ( ) : void
return void
        protected void SetupModel()
        {
            //set scale
            scale = 1.0f;

            //save bones
            transforms = new Matrix[model.Bones.Count];
            model.CopyAbsoluteBoneTransformsTo(transforms);

            //give default rotation
            rotationMatrixX = Matrix.CreateRotationX(0.0f);
            rotationMatrixY = Matrix.CreateRotationY(0.0f);
            rotationMatrixZ = Matrix.CreateRotationZ(0.0f);

            //give default position
            position = Vector3.Zero;
        }

Same methods

StaticModel::SetupModel ( Model model ) : void
StaticModel::SetupModel ( Model newModel, Vector3 position ) : void
StaticModel::SetupModel ( Vector3 position ) : void