Crystal Space
Welcome,
Guest
. Please
login
or
register
.
May 23, 2013, 01:52:24 pm
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
9224
Posts in
2230
Topics by
5385
Members
Latest Member:
Ritatondreau
Crystal Space
Associate Projects
CEL Discussion
Explanation of iPcCollisionDetection::AdjustForCollisions
« previous
next »
Pages:
[
1
]
Author
Topic: Explanation of iPcCollisionDetection::AdjustForCollisions (Read 2374 times)
kiper
Newbie
Posts: 17
Explanation of iPcCollisionDetection::AdjustForCollisions
«
on:
May 26, 2006, 05:23:14 pm »
virtual bool iPcCollisionDetection::AdjustForCollisions ( csVector3 & oldpos,
csVector3 & newpos,
csVector3 & vel,
float delta,
iMovable * movable
) [pure virtual]
This function takes a position vector, checks against all known colliders, and returns the adjusted position in the same variable.
This function is to calculate the correct position to place the mesh, right?
But what is it for "vel" and "delta"??
Logged
1800MHz Intel Centrino
1GB RAM
128 ATI Mobility Radeon X700
Win XP Pro SP2
Vincent
Full Member
Posts: 191
Re: Explanation of iPcCollisionDetection::AdjustForCollisions
«
Reply #1 on:
June 05, 2006, 08:44:27 pm »
It seems to be just a stub to csColliderActor::AdjustForCollisions(), which
apparently is used compute a new position depending on collision (ie. bounce back if object hits a wall).
vel
would be the velocity at which the object is travelling toward
newpos
delta
would be the elapsed time since you were at
oldpos
Logged
Pages:
[
1
]
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Crystal Space Development
-----------------------------
=> General Crystal Space Discussion
=> Support
-----------------------------
Crystal Space Project Development
-----------------------------
=> Feature Requests
=> Plugins
=> Bug Reports
-----------------------------
Crystal Space Development
-----------------------------
=> Game Content Creation
-----------------------------
Miscellaneous
-----------------------------
=> Article/Tutorial Requests
=> Article/Tutorial Discussion
-----------------------------
Crystal Space Project Development
-----------------------------
=> Development Discussion
-----------------------------
Crystal Space Projects
-----------------------------
=> Project Discussion
=> WIP Projects
=> Finished Projects
-----------------------------
Associate Projects
-----------------------------
=> CEL Discussion
=> Crystal Core Discussion
=> CrystalBlend Discussion
-----------------------------
Crystal Space Project Development
-----------------------------
=> Google Summer of Code
-----------------------------
Associate Projects
-----------------------------
=> Apricot (Open Game)
=> Ares Project
Loading...