CSmartPropOperation_RotateTowards
CS2 build 25218825 · Steam date 2026-09-09 · platform windows-x86_64 · cs2_schema.json
Kind: classSize: 528 bytes (0x210)Alignment: 8 bytesModule: smartpropsBinary: !GlobalTypes
Metadata: MPropertyDescription Apply a rotation to the current transform according to the alignment of two points. MPropertyFriendlyName Transform: Rotate Towards MVDataClassGroup Transform MVDataExperimentalNodeSet
Relationships
Inherits from: CSmartPropTransformOperation
Inheritance tree
CSmartPropModifier
CSmartPropOperation
CSmartPropTransformOperation
- CSmartPropOperation_RotateTowards
Relationship diagram (4 edges)
classDiagram
CSmartPropModifier <|-- CSmartPropOperation
CSmartPropOperation <|-- CSmartPropTransformOperation
CSmartPropTransformOperation <|-- CSmartPropOperation_RotateTowards
CSmartPropOperation_RotateTowards *-- CSmartPropAttributeCoordinateSpaceMemory layout
8 fields, 7 declared here and 1 inherited. Offsets are absolute from the object base on windows-x86_64.
CSmartPropModifierCSmartPropOperation_RotateTowards
| Offset | Field | Type | From | Annotations |
|---|---|---|---|---|
0x8 | m_bEnabled | CSmartPropAttributeBool | CSmartPropModifier | MVDataEnableKey |
0x50 | m_vOriginPos | CSmartPropAttributeVector | MPropertyDescription Position of origin point. | |
0x90 | m_vTargetPos | CSmartPropAttributeVector | MPropertyDescription position of target point. | |
0xd0 | m_vUpPos | CSmartPropAttributeVector | MPropertyDescription position of up point. | |
0x110 | m_flWeight | CSmartPropAttributeFloat | MPropertyDescription Coefficient to modulate the rotation | |
0x150 | m_OriginSpace | CSmartPropAttributeCoordinateSpace | MPropertyDescription Space in which the origin position is defined. MPropertyGroupName Input Coordinate Space | |
0x190 | m_TargetSpace | CSmartPropAttributeCoordinateSpace | MPropertyDescription Space in which the target position is defined. MPropertyGroupName Input Coordinate Space | |
0x1d0 | m_UpSpace | CSmartPropAttributeCoordinateSpace | MPropertyDescription Space in which the up target is defined. MPropertyGroupName Input Coordinate Space |
KV3 class defaults
{
"_class": "CSmartPropOperation_RotateTowards",
"m_bEnabled": true,
"m_vOriginPos":
[
0.000000,
0.000000,
0.000000
],
"m_vTargetPos":
[
1.000000,
0.000000,
0.000000
],
"m_vUpPos":
[
0.000000,
0.000000,
1.000000
],
"m_flWeight": 1.000000,
"m_OriginSpace": "WORLD",
"m_TargetSpace": "WORLD",
"m_UpSpace": "WORLD"
}