On Apr 25, 2012, at 10:35 AM, Vaibhav Vaidya wrote: > I have used the RigidBody component for the character (as well as terrain), > but I see the character legs getting into the terrain in high areas. How can > I make character clamp on the terrain??
what collision type is the rigidbody? in animation code with moving characters and a heightmap based terrain this can be useful: var p = terrain.GetPointOnMap(tm.pos); //the point on the terrain at this location - i.e. gives the current land height is in use in http://www.realxtend.org/world/lvm-tundra2/deer2.js (function updatePosition(dt)) which is up-to-date -- Jukka touched it previously in February or so I think after I originally made it (after ludo-Heikki's initial work), and did core enchancements for the terrain to support animation things at the same time. > Vaibhav ~Toni -- http://groups.google.com/group/realxtend http://www.realxtend.org
