You are here: Lua Scripting Resources eGuide > Lua Scripting API Reference Guide > Physics Library > rehashStatic

19.9.15 rehashStatic

self = physics.Space:rehashStatic()

Parameter

Type

Description

self

in physics.Space

The input simulation Space

self

out physics.Space

The input Space is returned as the output

Rehashes the shapes in the static spatial hash. You must call this if you move any static shapes or Chipmunk will not update their collision detection data.

Returns self..

Introduced in platform.apiLevel = '2.0'