Skip to main content
Skip to main content

createWheelShape

createWheelShape

Description

Create wheel shape

Definition

createWheelShape(entityId transformId, float positionX, float positionY, float positionZ, 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
floatpositionXpositionX
floatpositionYpositionY
floatpositionZpositionZ
floatradiusradius
floatsuspensionTravelsuspensionTravel
floatspringspring
floatdamperCompressionLowSpeeddamperCompressionLowSpeed
floatdamperCompressionHighSpeeddamperCompressionHighSpeed
floatdamperCompressionLowSpeedThresholddamperCompressionLowSpeedThreshold
floatdamperRelaxationLowSpeeddamperRelaxationLowSpeed
floatdamperRelaxationHighSpeeddamperRelaxationHighSpeed
floatdamperRelaxationLowSpeedThresholddamperRelaxationLowSpeedThreshold
floatmassmass
integercollisionGroupcollisionGroup
integercollisionMaskcollisionMask
integerwheelShapeIndexwheelShapeIndex (if 0, will create a new wheel)

Return Values

integerwheelShapeIndexwheelShapeIndex