Smartprop Operations: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "{{toc-right}} == CSmartPropOperation_TraceToPoint == {{todo|Add class members}} == CSmartPropOperation_TraceToLine == {{todo|Add class members}} == CSmartPropOperation_SetT...")
 
Line 59: Line 59:


== CSmartPropOperation_CreateRotator ==
== CSmartPropOperation_CreateRotator ==
{{todo|Add class members}}
; m_vRotationAxis
: Axis around which the rotation will occur
; m_CoordinateSpace
: Coordinate space the axis of rotation is specified in.
; m_flDisplayRadius
: اRadius at which the rotator handle should be displayed.
; m_bApplyToCurrentTrasnform
: Should the rotation be applied to the current transform.
; m_bEnforceLimits
: If enabled, the minimum and maximum rotation angles will be used to limit the range of the rotation. {{todo | Find corresponding class members to set the limits}}
; m_OutputVariable
: Specifies a float variable to which the rotation value should be output. The variable only receives the rotation around the axis, the axis of rotation does not affect this output.


== CSmartPropOperation_ResetRotation ==
== CSmartPropOperation_ResetRotation ==

Revision as of 03:00, 31 October 2023

CSmartPropOperation_TraceToPoint

Todo: Add class members

CSmartPropOperation_TraceToLine

Todo: Add class members

CSmartPropOperation_SetTintColor

Todo: Add class members

CSmartPropOperation_SetVariable

Todo: Add class members

CSmartPropOperation_SaveState

Todo: Add class members

CSmartPropOperation_RestoreState

Todo: Add class members

CSmartPropOperation_SavePosition

Todo: Add class members

CSmartPropOperation_SaveDirection

Todo: Add class members

CSmartPropOperation_SaveScale

Todo: Add class members

CSmartPropOperation_SaveSurfaceNormal

Todo: Add class members

CSmartPropOperation_SaveDirection

Todo: Add class members

CSmartPropOperation_ComputeDotProduct3D

Todo: Add class members

CSmartPropOperation_ComputeCrossProduct3D

Todo: Add class members

CSmartPropOperation_ComputeDistance3D

Todo: Add class members

CSmartPropOperation_ComputeVectorBetweenPoints3D

Todo: Add class members

CSmartPropOperation_ComputeNormalizedVector3D

Todo: Add class members

CSmartPropOperation_ComputeProjectVector3D

Todo: Add class members

CSmartPropOperation_CreateLocator

Todo: Add class members

CSmartPropOperation_CreateSizer

Todo: Add class members

CSmartPropOperation_CreateRotator

m_vRotationAxis
Axis around which the rotation will occur
m_CoordinateSpace
Coordinate space the axis of rotation is specified in.
m_flDisplayRadius
اRadius at which the rotator handle should be displayed.
m_bApplyToCurrentTrasnform
Should the rotation be applied to the current transform.
m_bEnforceLimits
If enabled, the minimum and maximum rotation angles will be used to limit the range of the rotation.
Todo:  Find corresponding class members to set the limits
m_OutputVariable
Specifies a float variable to which the rotation value should be output. The variable only receives the rotation around the axis, the axis of rotation does not affect this output.

CSmartPropOperation_ResetRotation

Todo: Add class members

CSmartPropOperation_SetOrientation

Todo: Add class members

CSmartPropOperation_SetPosition

Todo: Add class members

CSmartPropOperation_ResetScale

Todo: Add class members

CSmartPropOperation_Rotate

m_vRotation
Rotation to apply to the current transform

CSmartPropOperation_Translate

m_vPosition
Translation to apply to the current transform

CSmartPropOperation_RotateTowards

Todo: Add class members

CSmartPropOperation_Scale

Apply a scale to the current transform.

m_flScale
Scale to apply to the current transform

CSmartPropOperation_RandomOffset

Apply a random position offset to the current transform.

m_vRandomPositionMin
Minimum random position offset
m_vRandomPositionMax
Maximum random position offset

CSmartPropOperation_RandomRotation

Apply a random rotation to the current transform.

m_vRandomRotationMin
Minimum rotation range
m_vRandomRotationMax
Maximum rotation range

CSmartPropOperation_RandomScale

Apply a random scale to the current transform.

m_flRandomScaleMin
Minimum scale range
m_flRandomScaleMax
Maximum scale range

CSmartPropOperation_Trace

Todo: Add class members

CSmartPropOperation_TraceInDirection

Todo: Add class members