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); }
private extern static unsafe CPhyActor.NativePointer SDK_PhyContext_CreateActor(NativePointer self, EPhyActorType type, PhyTransform *pose);
public CPhyActor(NativePointer self, EPhyActorType type) : base(self) { mPhyType = type; }