public static unsafe Quaternion GetBoneOriginalRotation(Vehicle vehicle, int index) { CVehicle * veh = (CVehicle *)vehicle.MemoryAddress; NativeVector4 v = veh->inst->archetype->skeleton->skeletonData->bones[index].rotation; return(v); }
public static Quaternion GetBoneOriginalRotation(Vehicle vehicle, int index) { CVehicle * veh = (CVehicle *)vehicle.MemoryAddress; NativeVector4 v = veh->Inst->CacheEntry->Skeleton->Data->Bones[index].Rotation; return(v); }
/// <summary> /// Gets the original rotation of the bone with <paramref name="index"/> in <paramref name="vehicle"/>. /// </summary> /// <param name="vehicle">Instance of a <see cref="Vehicle"/>.</param> /// <param name="index">Bone's index.</param> /// <returns><see cref="Vector3"/> rotation of the bone.</returns> public static Quaternion GetBoneOriginalRotation(this Vehicle vehicle, int index) { if (!vehicle.NotNullAndExists()) { return(Quaternion.Zero); } unsafe { CVehicle * veh = (CVehicle *)vehicle.MemoryAddress; NativeVector4 v = veh->inst->archetype->skeleton->skeletonData->bones[index].rotation; return(v); } }
internal static extern void nativeModule_ColorModule_SetRandomLerp(Submodule *modulePtr, NativeVector4 min, NativeVector4 max);
internal static extern void nativeModule_ColorModule_SetLerp(Submodule *modulePtr, NativeVector4 end);