Пример #1
0
        public Entity InstantiatePrefab(PrefabResource prefab, Vec3 pos, Quat rot, float scale)
        {
            int entity_id = instantiatePrefab(instance_, prefab.__Instance, pos, rot, scale);

            return(getEntity(instance_, entity_id));
        }
Пример #2
0
 extern static int instantiatePrefab(IntPtr instance, System.IntPtr prefab, Vec3 pos, Quat rot, float scale);
Пример #3
0
 extern static int instantiatePrefab(IntPtr universe, IntPtr resource, Vec3 pos, Quat rot, float scale);
Пример #4
0
 extern static void setLocalRotation(IntPtr instance, int entity, Quat rot);
Пример #5
0
 public void SetRotation(Quat rot)
 {
     setRotation(instance_, entity_Id_, rot);
 }
Пример #6
0
 public void SetTransform(Vec3 pos, Quat rot, float scale)
 {
     setTransform(instance_, entity_Id_, pos, rot, scale);
 }
Пример #7
0
 extern static void setTransform(IntPtr instance, int entity, Vec3 pos, Quat rot, float scale);