--- orphan: true --- # {py:mod}`simvx.core.physics._server` ```{py:module} simvx.core.physics._server ``` ```{autodoc2-docstring} simvx.core.physics._server :allowtitles: ``` ## Module Contents ### Classes ````{list-table} :class: autosummary longtable :align: left * - {py:obj}`PhysicsServer ` - ```{autodoc2-docstring} simvx.core.physics._server.PhysicsServer :summary: ``` ```` ### Data ````{list-table} :class: autosummary longtable :align: left * - {py:obj}`log ` - ```{autodoc2-docstring} simvx.core.physics._server.log :summary: ``` * - {py:obj}`__all__ ` - ```{autodoc2-docstring} simvx.core.physics._server.__all__ :summary: ``` ```` ### API ````{py:data} log :canonical: simvx.core.physics._server.log :value: > 'getLogger(...)' ```{autodoc2-docstring} simvx.core.physics._server.log ``` ```` ````{py:data} __all__ :canonical: simvx.core.physics._server.__all__ :value: > ['PhysicsServer'] ```{autodoc2-docstring} simvx.core.physics._server.__all__ ``` ```` `````{py:class} PhysicsServer(cell_size: float = 2.0) :canonical: simvx.core.physics._server.PhysicsServer ```{autodoc2-docstring} simvx.core.physics._server.PhysicsServer ``` ```{rubric} Initialization ``` ```{autodoc2-docstring} simvx.core.physics._server.PhysicsServer.__init__ ``` ````{py:method} get() -> simvx.core.physics._server.PhysicsServer :canonical: simvx.core.physics._server.PhysicsServer.get :classmethod: ```{autodoc2-docstring} simvx.core.physics._server.PhysicsServer.get ``` ```` ````{py:method} reset() -> None :canonical: simvx.core.physics._server.PhysicsServer.reset :classmethod: ```{autodoc2-docstring} simvx.core.physics._server.PhysicsServer.reset ``` ```` ````{py:property} gravity :canonical: simvx.core.physics._server.PhysicsServer.gravity :type: numpy.ndarray ```{autodoc2-docstring} simvx.core.physics._server.PhysicsServer.gravity ``` ```` ````{py:method} add_body(body) -> None :canonical: simvx.core.physics._server.PhysicsServer.add_body ```{autodoc2-docstring} simvx.core.physics._server.PhysicsServer.add_body ``` ```` ````{py:method} remove_body(body) -> None :canonical: simvx.core.physics._server.PhysicsServer.remove_body ```{autodoc2-docstring} simvx.core.physics._server.PhysicsServer.remove_body ``` ```` ````{py:method} add_joint(joint) -> None :canonical: simvx.core.physics._server.PhysicsServer.add_joint ```{autodoc2-docstring} simvx.core.physics._server.PhysicsServer.add_joint ``` ```` ````{py:method} remove_joint(joint) -> None :canonical: simvx.core.physics._server.PhysicsServer.remove_joint ```{autodoc2-docstring} simvx.core.physics._server.PhysicsServer.remove_joint ``` ```` ````{py:method} step(dt: float) -> None :canonical: simvx.core.physics._server.PhysicsServer.step ```{autodoc2-docstring} simvx.core.physics._server.PhysicsServer.step ``` ```` ````{py:method} raycast(origin, direction, max_dist: float = 1000.0, layer_mask: int = 4294967295) -> list[simvx.core.collision.RayHit] :canonical: simvx.core.physics._server.PhysicsServer.raycast ```{autodoc2-docstring} simvx.core.physics._server.PhysicsServer.raycast ``` ```` ````{py:method} get_overlapping_bodies(body) -> list :canonical: simvx.core.physics._server.PhysicsServer.get_overlapping_bodies ```{autodoc2-docstring} simvx.core.physics._server.PhysicsServer.get_overlapping_bodies ``` ```` ````{py:property} body_count :canonical: simvx.core.physics._server.PhysicsServer.body_count :type: int ```{autodoc2-docstring} simvx.core.physics._server.PhysicsServer.body_count ``` ```` `````