Esempio n. 1
0
        public override IntPtr CreateCollider(bool applyOffset)
        {
            Matrix4x4  offsetMatrix = Matrix4x4.identity;
            Quaternion rotation     = Quaternion.Euler(0.0f, 0.0f, 90.0f);

            offsetMatrix.SetTRS(Vector3.zero, rotation, Vector3.one);
            IntPtr collider = NewtonAPI.NewtonCreateCone(NewtonWorld.Instance.pWorld, Radius, Height, 0, ref offsetMatrix);

            return(collider);
        }