public static ActorColliderCircle Read(Actor actor, BinaryReader reader, ActorColliderCircle property = null) { if (property == null) { property = new ActorColliderCircle(); } ActorCollider.Read(actor, reader, property); property.m_Radius = reader.ReadSingle(); return(property); }
public static ActorColliderRectangle Read(Actor actor, BinaryReader reader, ActorColliderRectangle property = null) { if (property == null) { property = new ActorColliderRectangle(); } ActorCollider.Read(actor, reader, property); property.m_Width = reader.ReadSingle(); property.m_Height = reader.ReadSingle(); return(property); }
public static ActorColliderLine Read(Actor actor, BinaryReader reader, ActorColliderLine property = null) { if (property == null) { property = new ActorColliderLine(); } ActorCollider.Read(actor, reader, property); int numVertices = (int)reader.ReadUInt32(); property.m_Vertices = new float[numVertices * 2]; Actor.ReadFloat32Array(reader, property.m_Vertices); return(property); }
public void Copy(ActorCollider prop, Actor resetActor) { base.Copy(prop, resetActor); m_IsCollisionEnabled = prop.m_IsCollisionEnabled; }
public static ActorCollider Read(Actor actor, BinaryReader reader, ActorCollider property) { ActorNode.Read(actor, reader, property); property.IsCollisionEnabled = reader.ReadByte() == 1; return(property); }