Exemple #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));
        }
Exemple #2
0
 extern static int instantiatePrefab(IntPtr instance, System.IntPtr prefab, Vec3 pos, Quat rot, float scale);
Exemple #3
0
 extern static int instantiatePrefab(IntPtr universe, IntPtr resource, Vec3 pos, Quat rot, float scale);
Exemple #4
0
 extern static void setLocalRotation(IntPtr instance, int entity, Quat rot);
Exemple #5
0
 public void SetRotation(Quat rot)
 {
     setRotation(instance_, entity_Id_, rot);
 }
Exemple #6
0
 public void SetTransform(Vec3 pos, Quat rot, float scale)
 {
     setTransform(instance_, entity_Id_, pos, rot, scale);
 }
Exemple #7
0
 extern static void setTransform(IntPtr instance, int entity, Vec3 pos, Quat rot, float scale);