mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-29 09:45:32 +00:00
commit
7ee5526dbf
1 changed files with 5 additions and 5 deletions
|
@ -57,7 +57,7 @@ namespace MWPhysics
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
PhysicsSystem (Resource::ResourceSystem* resourceSystem, osg::ref_ptr<osg::Group> parentNode);
|
PhysicsSystem (Resource::ResourceSystem* resourceSystem, osg::ref_ptr<osg::Group> parentNode);
|
||||||
~PhysicsSystem ();
|
virtual ~PhysicsSystem ();
|
||||||
|
|
||||||
void setUnrefQueue(SceneUtil::UnrefQueue* unrefQueue);
|
void setUnrefQueue(SceneUtil::UnrefQueue* unrefQueue);
|
||||||
|
|
||||||
|
@ -109,17 +109,17 @@ namespace MWPhysics
|
||||||
/// target vector hits the collision shape and then calculates distance from the intersection point.
|
/// target vector hits the collision shape and then calculates distance from the intersection point.
|
||||||
/// This can be used to find out how much nearer we need to move to the target for a "getHitContact" to be successful.
|
/// This can be used to find out how much nearer we need to move to the target for a "getHitContact" to be successful.
|
||||||
/// \note Only Actor targets are supported at the moment.
|
/// \note Only Actor targets are supported at the moment.
|
||||||
float getHitDistance(const osg::Vec3f& point, const MWWorld::ConstPtr& target) const final;
|
float getHitDistance(const osg::Vec3f& point, const MWWorld::ConstPtr& target) const override final;
|
||||||
|
|
||||||
/// @param me Optional, a Ptr to ignore in the list of results. targets are actors to filter for, ignoring all other actors.
|
/// @param me Optional, a Ptr to ignore in the list of results. targets are actors to filter for, ignoring all other actors.
|
||||||
RayCastingResult castRay(const osg::Vec3f &from, const osg::Vec3f &to, const MWWorld::ConstPtr& ignore = MWWorld::ConstPtr(),
|
RayCastingResult castRay(const osg::Vec3f &from, const osg::Vec3f &to, const MWWorld::ConstPtr& ignore = MWWorld::ConstPtr(),
|
||||||
std::vector<MWWorld::Ptr> targets = std::vector<MWWorld::Ptr>(),
|
std::vector<MWWorld::Ptr> targets = std::vector<MWWorld::Ptr>(),
|
||||||
int mask = CollisionType_World|CollisionType_HeightMap|CollisionType_Actor|CollisionType_Door, int group=0xff) const final;
|
int mask = CollisionType_World|CollisionType_HeightMap|CollisionType_Actor|CollisionType_Door, int group=0xff) const override final;
|
||||||
|
|
||||||
RayCastingResult castSphere(const osg::Vec3f& from, const osg::Vec3f& to, float radius) const final;
|
RayCastingResult castSphere(const osg::Vec3f& from, const osg::Vec3f& to, float radius) const override final;
|
||||||
|
|
||||||
/// Return true if actor1 can see actor2.
|
/// Return true if actor1 can see actor2.
|
||||||
bool getLineOfSight(const MWWorld::ConstPtr& actor1, const MWWorld::ConstPtr& actor2) const final;
|
bool getLineOfSight(const MWWorld::ConstPtr& actor1, const MWWorld::ConstPtr& actor2) const override final;
|
||||||
|
|
||||||
bool isOnGround (const MWWorld::Ptr& actor);
|
bool isOnGround (const MWWorld::Ptr& actor);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue