Пример #1
0
        public CPhyActor CreateActor(EPhyActorType type, ref PhyTransform pose)
        {
            CPhyActor.NativePointer ptr;
            unsafe
            {
                fixed(PhyTransform *p = &pose)
                {
                    ptr = SDK_PhyContext_CreateActor(CoreObject, type, p);
                }
            }

            var ret = new CPhyActor(ptr, type);

            return(ret);
        }
Пример #2
0
 private extern static unsafe CPhyActor.NativePointer SDK_PhyContext_CreateActor(NativePointer self, EPhyActorType type, PhyTransform *pose);
Пример #3
0
 public CPhyActor(NativePointer self, EPhyActorType type) : base(self)
 {
     mPhyType = type;
 }