|
| | FxScene (FxVec2ui SceneSize) |
| |
| | ~FxScene ()=default |
| |
| void | reset () |
| |
| void | capture_initial_state () |
| |
| void | step (double step_dt) |
| |
| double | time_elapsed () const |
| |
| void | set_substeps (const size_t &substeps) |
| |
| void | set_velocity_passes (size_t passes) |
| |
| void | set_gravity (const FxVec2f &o_gravity) |
| |
| void | set_step_callback (const std::function< void(FxScene &, double dt)> &callback) |
| |
| void | set_reset_callback (const std::function< void(FxScene &)> &callback) |
| |
| void | set_fillColor (const FxVec4ui8 &color) |
| |
| void | set_fillTexture (const std::string &filePath) |
| |
| bool | add_entity (const std::shared_ptr< FxEntity > &entity) |
| |
| bool | delete_entity (const std::string &name) |
| |
| std::shared_ptr< FxEntity > | get_entity (const std::string &name) const |
| |
| bool | add_constraint (const std::shared_ptr< FxConstraint > &constraint) |
| |
| bool | delete_constraint (const std::string &name) |
| |
| std::shared_ptr< FxConstraint > | get_constraint (const std::string &name) const |
| |
| bool | add_joint (const std::shared_ptr< FxJoint > &joint) |
| |
| bool | delete_joint (const std::string &name) |
| |
| std::shared_ptr< FxJoint > | get_joint (const std::string &name) const |
| |
| const FxInput & | input () const |
| |
| FxInput & | input () |
| |
| FxMouseJoint & | mouse_joint () |
| |
| const FxMouseJoint & | mouse_joint () const |
| |
| void | enable_mouse_drag (bool enable) |
| |
| bool | mouse_drag_enabled () const |
| |
| const std::vector< FxContact > & | contacts () const |
| |
| const std::vector< FxContactEvent > & | begin_contact_events () const |
| |
| const std::vector< FxContactEvent > & | end_contact_events () const |
| |
| bool | raycast (const FxVec2f &origin, const FxVec2f &direction, float max_distance, FxRayHit &out_hit) const |
| |
| void | raycast_all (const FxVec2f &origin, const FxVec2f &direction, float max_distance, std::vector< FxRayHit > &out_hits) const |
| |
| void | overlap_shape (const FxShape &shape, const FxVec3f &pose, std::vector< std::shared_ptr< FxEntity > > &out) const |
| |
| void | overlap_circle (const FxVec2f ¢re, float radius, std::vector< std::shared_ptr< FxEntity > > &out) const |
| |
| void | overlap_box (const FxVec2f ¢re, const FxVec2f &extents, std::vector< std::shared_ptr< FxEntity > > &out) const |
| |
| void | overlap_point (const FxVec2f &point, std::vector< std::shared_ptr< FxEntity > > &out) const |
| |
| std::shared_ptr< FxEntity > | entity_at_point (const FxVec2f &point) const |
| |
| size_t | entity_count () const |
| |
| size_t | constraint_count () const |
| |
| size_t | joint_count () const |
| |
| bool | entity_exists (const std::string &name) const |
| |
| bool | constraint_exists (const std::string &name) const |
| |
| bool | joint_exists (const std::string &name) const |
| |
| std::shared_ptr< FxEntityGroup > | create_group (const std::string &name, bool self_collide=false) |
| |
| bool | add_to_group (const std::shared_ptr< FxEntityGroup > &group, const std::shared_ptr< FxEntity > &entity) |
| |
| std::shared_ptr< FxEntityGroup > | get_group (const std::string &name) const |
| |
| bool | delete_group (const std::string &name) |
| |
| size_t | group_count () const |
| |
| std::string | unique_entity_name (const std::string &base) const |
| |
| void | enable_collision (const std::string &entity1_name, const std::string &entity2_name) |
| |
| void | disable_collision (const std::string &entity1_name, const std::string &entity2_name) |
| |
| template<typename ExecPolicy , typename Func > |
| void | for_each_entity (ExecPolicy &&policy, Func &&func) |
| |
| template<typename ExecPolicy , typename Func > |
| void | transform_entities (ExecPolicy &&policy, Func &&func, std::vector< std::invoke_result_t< Func, std::shared_ptr< FxEntity > > > &results) |
| |
Owns a simulated world and advances it with step().
Definition at line 56 of file Scene.h.