Object

class Varwin.Object

Bases: object

Representation of a scene object.

property InteractionBehaviour: InteractionBehaviour

Gets the interaction behavior of the object.

Example:

result = instance.InteractionBehaviour
property MotionBehaviour: MotionBehaviour

Gets the motion behavior of the object.

Example:

result = instance.MotionBehaviour
property PhysicsBehaviour: PhysicsBehaviour

Gets the physics behavior of the object.

Example:

result = instance.PhysicsBehaviour
property RotateBehaviour: RotateBehaviour

Gets the rotate behavior of the object.

Example:

result = instance.RotateBehaviour
property ScaleBehaviour: ScaleBehaviour

Gets the scale behavior of the object.

Example:

result = instance.ScaleBehaviour
property VisualizationBehaviour: VisualizationBehaviour

Gets the visualization behavior of the object.

Example:

result = instance.VisualizationBehaviour
property Activity: bool

Gets the active state of the object.

Example:

result = instance.Activity
property Enabled: bool

Gets the enabled state of the object.

Example:

result = instance.Enabled
GetName() → str

Gets the name of the object.

Example:

result = instance.GetName()
GetTypeName() → str

Gets the type name of the object.

Example:

result = instance.GetTypeName()
GetParent() → Object

Gets the parent object.

Returns:

scene object

Example:

result = instance.GetParent()
GetChildren() → List[Object]

Gets a list of child objects.

Example:

result = instance.GetChildren()
GetDescendants() → List[Object]

Gets a list of all descendant objects (children, grandchildren, etc.).

Example:

result = instance.GetDescendants()
GetAncestry() → List[Object]

Gets a list of ancestor objects (parent, grandparent, etc.).

Example:

result = instance.GetAncestry()
Enable() → None

Enables the object.

Example:

instance.Enable()
Disable() → None

Disables the object.

Example:

instance.Disable()
Activate() → None

Activate the object.

Example:

instance.Activate()
Deactivate() → None

Deactivate the object.

Example:

instance.Deactivate()
IsActive() → bool

Checks if the object is active.

Example:

result = instance.IsActive()
IsInactive() → bool

Checks if the object is inactive.

Example:

result = instance.IsInactive()
IsEnabled() → bool

Checks if the object is enabled.

Example:

result = instance.IsEnabled()
IsDisabled() → bool

Checks if the object is disabled.

Example:

result = instance.IsDisabled()
TransformPoint(vector: Vector3) → Vector3

Transforms a point from local space to world space.

Example:

result = instance.TransformPoint(Varwin.Vector3(1,0,0))
InverseTransformPoint(vector: Vector3) → Vector3

Transforms a point from world space to local space.

Example:

result = instance.InverseTransformPoint(Varwin.Vector3(1,0,0))