PhysicsManager

Struct PhysicsManager 

Source
pub struct PhysicsManager {
Show 41 fields pub m_BounceThreshold: f32, pub m_DefaultMaterial: PPtr, pub m_Gravity: Vector3f, pub m_LayerCollisionMatrix: Vec<u32>, pub m_AutoSimulation: Option<bool>, pub m_AutoSyncTransforms: Option<bool>, pub m_BroadphaseType: Option<i32>, pub m_ClothGravity: Option<Vector3f>, pub m_ClothInterCollisionDistance: Option<f32>, pub m_ClothInterCollisionSettingsToggle: Option<bool>, pub m_ClothInterCollisionStiffness: Option<f32>, pub m_ContactPairsMode: Option<i32>, pub m_ContactsGeneration: Option<i32>, pub m_DefaultContactOffset: Option<f32>, pub m_DefaultMaxAngluarSpeed: Option<f32>, pub m_DefaultMaxAngularSpeed: Option<f32>, pub m_DefaultMaxDepenetrationVelocity: Option<f32>, pub m_DefaultSolverIterations: Option<i32>, pub m_DefaultSolverVelocityIterations: Option<i32>, pub m_EnableAdaptiveForce: Option<bool>, pub m_EnableEnhancedDeterminism: Option<bool>, pub m_EnablePCM: Option<bool>, pub m_EnableUnifiedHeightmaps: Option<bool>, pub m_FrictionType: Option<i32>, pub m_ImprovedPatchFriction: Option<bool>, pub m_InvokeCollisionCallbacks: Option<bool>, pub m_MaxAngularVelocity: Option<f32>, pub m_MinPenetrationForPenalty: Option<f32>, pub m_QueriesHitBackfaces: Option<bool>, pub m_QueriesHitTriggers: Option<bool>, pub m_RaycastsHitTriggers: Option<bool>, pub m_ReuseCollisionCallbacks: Option<bool>, pub m_SimulationMode: Option<i32>, pub m_SleepAngularVelocity: Option<f32>, pub m_SleepThreshold: Option<f32>, pub m_SleepVelocity: Option<f32>, pub m_SolverIterationCount: Option<i32>, pub m_SolverType: Option<i32>, pub m_SolverVelocityIterations: Option<i32>, pub m_WorldBounds: Option<AABB>, pub m_WorldSubdivisions: Option<i32>,
}
Expand description

PhysicsManager is a class of the Unity engine since version 3.4.0.

Fields§

§m_BounceThreshold: f32§m_DefaultMaterial: PPtr

PPtr<PhysicMaterial>: (3.4.0 - 2022.3.2f1)

§m_Gravity: Vector3f§m_LayerCollisionMatrix: Vec<u32>§m_AutoSimulation: Option<bool>

bool: (2017.1.0b2 - 2022.1.24f1)

§m_AutoSyncTransforms: Option<bool>

bool: (2017.2.0b2 - 2022.3.2f1)

§m_BroadphaseType: Option<i32>

i32: (2017.3.0b1 - 2022.3.2f1)

§m_ClothGravity: Option<Vector3f>

Vector3f: (2019.1.0b1 - 2022.3.2f1)

§m_ClothInterCollisionDistance: Option<f32>

f32: (2017.3.0b1 - 2022.3.2f1)

§m_ClothInterCollisionSettingsToggle: Option<bool>

bool: (2017.3.0b1 - 2022.3.2f1)

§m_ClothInterCollisionStiffness: Option<f32>

f32: (2017.3.0b1 - 2022.3.2f1)

§m_ContactPairsMode: Option<i32>

i32: (2017.3.0b1 - 2022.3.2f1)

§m_ContactsGeneration: Option<i32>

i32: (2017.3.0b1 - 2022.3.2f1)

§m_DefaultContactOffset: Option<f32>

f32: (5.0.0f4 - 2022.3.2f1)

§m_DefaultMaxAngluarSpeed: Option<f32>

f32: (2019.1.0b1 - 2019.1.0a14)

§m_DefaultMaxAngularSpeed: Option<f32>

f32: (2019.1.0f2 - 2022.3.2f1)

§m_DefaultMaxDepenetrationVelocity: Option<f32>

f32: (2020.1.0b1 - 2022.3.2f1)

§m_DefaultSolverIterations: Option<i32>

i32: (5.5.0f3 - 2022.3.2f1)

§m_DefaultSolverVelocityIterations: Option<i32>

i32: (5.5.0f3 - 2022.3.2f1)

§m_EnableAdaptiveForce: Option<bool>

bool: (5.0.0f4 - 2022.3.2f1)

§m_EnableEnhancedDeterminism: Option<bool>

bool: (2018.3.0f2 - 2022.3.2f1)

§m_EnablePCM: Option<bool>

bool: (5.5.0f3 - 2017.2.5f1)

§m_EnableUnifiedHeightmaps: Option<bool>

bool: (2018.3.0f2 - 2022.3.2f1)

§m_FrictionType: Option<i32>

i32: (2018.3.0f2 - 2022.3.2f1)

§m_ImprovedPatchFriction: Option<bool>

bool: (2021.2.0b1 - 2022.3.2f1)

§m_InvokeCollisionCallbacks: Option<bool>

bool: (2022.2.0b1 - 2022.3.2f1)

§m_MaxAngularVelocity: Option<f32>

f32: (3.4.0 - 4.7.2)

§m_MinPenetrationForPenalty: Option<f32>

f32: (3.4.0 - 4.7.2)

§m_QueriesHitBackfaces: Option<bool>

bool: (5.5.0f3 - 2022.3.2f1)

§m_QueriesHitTriggers: Option<bool>

bool: (5.2.0f2 - 2022.3.2f1)

§m_RaycastsHitTriggers: Option<bool>

bool: (3.4.0 - 5.1.5f1)

§m_ReuseCollisionCallbacks: Option<bool>

bool: (2018.3.0f2 - 2022.3.2f1)

§m_SimulationMode: Option<i32>

i32: (2022.2.0b1 - 2022.3.2f1)

§m_SleepAngularVelocity: Option<f32>

f32: (3.4.0 - 4.7.2)

§m_SleepThreshold: Option<f32>

f32: (5.0.0f4 - 2022.3.2f1)

§m_SleepVelocity: Option<f32>

f32: (3.4.0 - 4.7.2)

§m_SolverIterationCount: Option<i32>

i32: (3.4.0 - 5.4.6f3)

§m_SolverType: Option<i32>

i32: (2019.3.0b1 - 2022.3.2f1)

§m_SolverVelocityIterations: Option<i32>

i32: (5.4.0f3 - 5.4.6f3)

§m_WorldBounds: Option<AABB>

AABB: (2017.3.0b1 - 2022.3.2f1)

§m_WorldSubdivisions: Option<i32>

i32: (2017.3.0b1 - 2022.3.2f1)

Trait Implementations§

Source§

impl Debug for PhysicsManager

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for PhysicsManager

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for PhysicsManager

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,