object:resetMassData()

Type Function
Object Body
Library physics.*
Return value none
Revision Release 2022.3683
Keywords body, resetMassData
See also object.mass

Overview

If the default mass data for the body has been overridden, this function resets it to the mass calculated from the shapes.

Syntax

object:resetMassData()