Blender V5.0
btSoftBody::RayFromToCaster Struct Reference

RayFromToCaster takes a ray from, ray to (instead of direction!). More...

#include <btSoftBody.h>

Inherits btDbvt::ICollide.

Public Member Functions

 RayFromToCaster (const btVector3 &rayFrom, const btVector3 &rayTo, btScalar mxt)
void Process (const btDbvtNode *leaf)
Public Member Functions inherited from btDbvt::ICollide
DBVT_VIRTUAL void Process (const btDbvtNode *, const btDbvtNode *)
DBVT_VIRTUAL void Process (const btDbvtNode *)
DBVT_VIRTUAL void Process (const btDbvtNode *n, btScalar)
DBVT_VIRTUAL void Process (const btDbvntNode *, const btDbvntNode *)
DBVT_VIRTUAL bool Descent (const btDbvtNode *)
DBVT_VIRTUAL bool AllLeaves (const btDbvtNode *)

Static Public Member Functions

static btScalar rayFromToTriangle (const btVector3 &rayFrom, const btVector3 &rayTo, const btVector3 &rayNormalizedDirection, const btVector3 &a, const btVector3 &b, const btVector3 &c, btScalar maxt=SIMD_INFINITY)

Public Attributes

btVector3 m_rayFrom
btVector3 m_rayTo
btVector3 m_rayNormalizedDirection
btScalar m_mint
Facem_face
int m_tests

Detailed Description

RayFromToCaster takes a ray from, ray to (instead of direction!).

Definition at line 749 of file btSoftBody.h.

Constructor & Destructor Documentation

◆ RayFromToCaster()

btSoftBody::RayFromToCaster::RayFromToCaster ( const btVector3 & rayFrom,
const btVector3 & rayTo,
btScalar mxt )

Definition at line 2336 of file btSoftBody.cpp.

References btVector3, m_face, m_mint, m_rayFrom, m_rayNormalizedDirection, m_rayTo, and m_tests.

Member Function Documentation

◆ Process()

void btSoftBody::RayFromToCaster::Process ( const btDbvtNode * leaf)

◆ rayFromToTriangle()

btScalar btSoftBody::RayFromToCaster::rayFromToTriangle ( const btVector3 & rayFrom,
const btVector3 & rayTo,
const btVector3 & rayNormalizedDirection,
const btVector3 & a,
const btVector3 & b,
const btVector3 & c,
btScalar maxt = SIMD_INFINITY )
static

Definition at line 2364 of file btSoftBody.cpp.

References b, btCross(), btDot(), btFuzzyZero(), btVector3, num, and SIMD_EPSILON.

Referenced by Process(), and btSoftBody::rayTest().

Member Data Documentation

◆ m_face

Face* btSoftBody::RayFromToCaster::m_face

◆ m_mint

btScalar btSoftBody::RayFromToCaster::m_mint

◆ m_rayFrom

btVector3 btSoftBody::RayFromToCaster::m_rayFrom

Definition at line 751 of file btSoftBody.h.

Referenced by Process(), and RayFromToCaster().

◆ m_rayNormalizedDirection

btVector3 btSoftBody::RayFromToCaster::m_rayNormalizedDirection

Definition at line 753 of file btSoftBody.h.

Referenced by Process(), and RayFromToCaster().

◆ m_rayTo

btVector3 btSoftBody::RayFromToCaster::m_rayTo

Definition at line 752 of file btSoftBody.h.

Referenced by Process(), and RayFromToCaster().

◆ m_tests

int btSoftBody::RayFromToCaster::m_tests

Definition at line 756 of file btSoftBody.h.

Referenced by Process(), and RayFromToCaster().


The documentation for this struct was generated from the following files: