Skip to main content
Skip to main content

createWheelShapeVector

createWheelShapeVector

Description

Create wheel shape

Definition

createWheelShapeVector(entityId transformId, vector position, float radius, float suspensionTravel, float spring, float damperCompressionLowSpeed, float damperCompressionHighSpeed, float damperCompressionLowSpeedThreshold, float damperRelaxationLowSpeed, float damperRelaxationHighSpeed, float damperRelaxationLowSpeedThreshold, float mass, integer collisionGroup, integer collisionMask, integer wheelShapeIndex)

Arguments

entityIdtransformIdtransformId
vectorposition
floatradius
floatsuspensionTravel
floatspring
floatdamperCompressionLowSpeed
floatdamperCompressionHighSpeed
floatdamperCompressionLowSpeedThreshold
floatdamperRelaxationLowSpeed
floatdamperRelaxationHighSpeed
floatdamperRelaxationLowSpeedThreshold
floatmass
integercollisionGroup
integercollisionMask
integerwheelShapeIndexwheelShapeIndex (if 0, will create a new wheel)

Return Values

integerwheelShapeIndex