Skip to content

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
Relationship diagram (4 edges)
classDiagram
    CSmartPropModifier <|-- CSmartPropOperation
    CSmartPropOperation <|-- CSmartPropTransformOperation
    CSmartPropTransformOperation <|-- CSmartPropOperation_RotateTowards
    CSmartPropOperation_RotateTowards *-- CSmartPropAttributeCoordinateSpace
Inheritance chain, direct subclasses (up to 20) and a few composition edges

Memory layout

8 fields, 7 declared here and 1 inherited. Offsets are absolute from the object base on windows-x86_64.

CSmartPropModifierCSmartPropOperation_RotateTowards

OffsetFieldTypeFromAnnotations
0x8m_bEnabledCSmartPropAttributeBoolCSmartPropModifierMVDataEnableKey
0x50m_vOriginPosCSmartPropAttributeVectorMPropertyDescription Position of origin point.
0x90m_vTargetPosCSmartPropAttributeVectorMPropertyDescription position of target point.
0xd0m_vUpPosCSmartPropAttributeVectorMPropertyDescription position of up point.
0x110m_flWeightCSmartPropAttributeFloatMPropertyDescription Coefficient to modulate the rotation
0x150m_OriginSpaceCSmartPropAttributeCoordinateSpaceMPropertyDescription Space in which the origin position is defined. MPropertyGroupName Input Coordinate Space
0x190m_TargetSpaceCSmartPropAttributeCoordinateSpaceMPropertyDescription Space in which the target position is defined. MPropertyGroupName Input Coordinate Space
0x1d0m_UpSpaceCSmartPropAttributeCoordinateSpaceMPropertyDescription 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"
}