public static void DecomposeMatrix(ref NitroxMatrix4x4 matrix, out NitroxVector3 localPosition, out NitroxQuaternion localRotation, out NitroxVector3 localScale) { NitroxMatrix4x4 before = new NitroxMatrix4x4(matrix); localScale = ExtractScale(ref matrix); localRotation = ExtractRotation(ref matrix); localPosition = ExtractTranslation(ref matrix); matrix = before; }
public VehicleModel(NitroxTechType techType, NitroxId id, NitroxVector3 position, NitroxQuaternion rotation, IEnumerable <InteractiveChildObjectIdentifier> interactiveChildIdentifiers, Optional <NitroxId> dockingBayId, string name, NitroxVector3[] hsb, float health) { TechType = techType; Id = id; Position = position; Rotation = rotation; InteractiveChildIdentifiers = new ThreadSafeCollection <InteractiveChildObjectIdentifier>(interactiveChildIdentifiers); DockingBayId = dockingBayId; Name = name; HSB = hsb; Health = health; }
public VehicleMovementData(NitroxTechType techType, NitroxId id, NitroxVector3 position, NitroxQuaternion rotation) { TechType = techType; Id = id; Position = position; Rotation = rotation; Velocity = NitroxVector3.Zero; AngularVelocity = NitroxVector3.Zero; SteeringWheelYaw = 0f; SteeringWheelPitch = 0f; AppliedThrottle = false; }
public VehicleMovementData(NitroxTechType techType, NitroxId id, NitroxVector3 position, NitroxQuaternion rotation, NitroxVector3 velocity, NitroxVector3 angularVelocity, float steeringWheelYaw, float steeringWheelPitch, bool appliedThrottle) { TechType = techType; Id = id; Position = position; Rotation = rotation; Velocity = velocity; AngularVelocity = angularVelocity; SteeringWheelYaw = steeringWheelYaw; SteeringWheelPitch = steeringWheelPitch; AppliedThrottle = appliedThrottle; }
public void Init() { defaultVal = new NitroxQuaternion(0.5682333f, -0.01828304f, -0.5182831f, 0.6388735f); }
public BasePiece(NitroxId id, NitroxVector3 itemPosition, NitroxQuaternion rotation, NitroxVector3 cameraPosition, NitroxQuaternion cameraRotation, NitroxTechType techType, Optional <NitroxId> parentId, bool isFurniture, Optional <RotationMetadata> rotationMetadata) { Id = id; ItemPosition = itemPosition; Rotation = rotation; TechType = techType; CameraPosition = cameraPosition; CameraRotation = cameraRotation; ParentId = parentId; IsFurniture = isFurniture; ConstructionAmount = 0.0f; ConstructionCompleted = false; RotationMetadata = rotationMetadata; Metadata = Optional.Empty; }
public BasePiece(NitroxId id, NitroxVector3 itemPosition, NitroxQuaternion rotation, NitroxVector3 cameraPosition, NitroxQuaternion cameraRotation, NitroxTechType techType, Optional <NitroxId> parentId, bool isFurniture, Optional <RotationMetadata> rotationMetadata, Optional <BasePieceMetadata> metadata) : this(id, itemPosition, rotation, cameraPosition, cameraRotation, techType, parentId, isFurniture, rotationMetadata) { Metadata = metadata; }