Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        /// <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);
            }
        }
Esempio n. 4
0
 internal static extern void nativeModule_ColorModule_SetRandomLerp(Submodule *modulePtr, NativeVector4 min, NativeVector4 max);
Esempio n. 5
0
 internal static extern void nativeModule_ColorModule_SetLerp(Submodule *modulePtr, NativeVector4 end);