pub struct PositionConstraint {
pub m_AffectTranslationX: bool,
pub m_AffectTranslationY: bool,
pub m_AffectTranslationZ: bool,
pub m_Enabled: u8,
pub m_GameObject: PPtr,
pub m_Sources: Vec<ConstraintSource>,
pub m_TranslationAtRest: Vector3f,
pub m_TranslationOffset: Vector3f,
pub m_Weight: f32,
pub m_Active: Option<bool>,
pub m_IsContraintActive: Option<bool>,
}
Expand description
PositionConstraint is a class of the Unity engine since version 2018.1.0b2. Exert from Unity’s scripting documentation: Constrains the position of an object relative to the position of one or more source objects.
Fields§
§m_AffectTranslationX: bool
§m_AffectTranslationY: bool
§m_AffectTranslationZ: bool
§m_Enabled: u8
Enabled Behaviours are Updated, disabled Behaviours are not.
m_GameObject: PPtr
The game object this component is attached to. A component is always attached to a game object.
PPtr<GameObject
>: (2018.1.0b2 - 2022.3.2f1)
m_Sources: Vec<ConstraintSource>
§m_TranslationAtRest: Vector3f
The translation used when the sources have a total weight of 0.
m_TranslationOffset: Vector3f
The offset from the constrained position.
m_Weight: f32
The weight of the constraint component.
m_Active: Option<bool>
bool: (2022.1.0b1 - 2022.3.2f1)
m_IsContraintActive: Option<bool>
bool: (2018.1.0b2 - 2022.1.0a9)
Trait Implementations§
Source§impl Debug for PositionConstraint
impl Debug for PositionConstraint
Source§impl<'de> Deserialize<'de> for PositionConstraint
impl<'de> Deserialize<'de> for PositionConstraint
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PositionConstraint
impl RefUnwindSafe for PositionConstraint
impl Send for PositionConstraint
impl Sync for PositionConstraint
impl Unpin for PositionConstraint
impl UnwindSafe for PositionConstraint
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more