14 #ifndef __BULLET_ALL_HITS_RAY_RESULT_H__ 15 #define __BULLET_ALL_HITS_RAY_RESULT_H__ 35 LPoint3 get_hit_pos()
const;
36 LVector3 get_hit_normal()
const;
37 PN_stdfloat get_hit_fraction()
const;
39 int get_shape_part()
const;
40 int get_triangle_index()
const;
42 MAKE_PROPERTY(node, get_node);
43 MAKE_PROPERTY(hit_pos, get_hit_pos);
44 MAKE_PROPERTY(hit_normal, get_hit_normal);
45 MAKE_PROPERTY(hit_fraction, get_hit_fraction);
46 MAKE_PROPERTY(shape_part, get_shape_part);
47 MAKE_PROPERTY(triangle_index, get_triangle_index);
50 const btCollisionObject *_object;
69 LPoint3 get_from_pos()
const;
70 LPoint3 get_to_pos()
const;
72 bool has_hits()
const;
73 PN_stdfloat get_closest_hit_fraction()
const;
75 int get_num_hits()
const;
77 MAKE_SEQ(get_hits, get_num_hits, get_hit);
79 MAKE_PROPERTY(from_pos, get_from_pos);
80 MAKE_PROPERTY(to_pos, get_to_pos);
81 MAKE_PROPERTY(closest_hit_fraction, get_closest_hit_fraction);
82 MAKE_SEQ_PROPERTY(hits, get_num_hits, get_hit);
85 virtual bool needsCollision(btBroadphaseProxy* proxy0)
const;
86 virtual btScalar addSingleResult(btCollisionWorld::LocalRayResult& rayResult,
bool normalInWorldSpace);
93 btAlignedObjectArray<int> _shapePart;
94 btAlignedObjectArray<int> _triangleIndex;
101 #endif // __BULLET_ALL_HITS_RAY_RESULT_H__ PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A basic node of the scene graph or data graph.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.