Aloys wrote:You can either assign the collision directly to your visible mesh
Chacal wrote:Aloys wrote:You can either assign the collision directly to your visible mesh
Please don't do that. Climbing stairs becomes a huge pain.
I've never had that problem, has long as your slope is bellow 30° it's fine. Above that number however, things can get messy quickly.I can never get stairs right, I add a separate collision but they're always sluggish to climb
# retrieve elasticity from alcscript
self.fEL = float(FindInDict(objscript,"physical.elasticity",-1.0))
if self.fEL == -1.0:
# retrieve elasticity from logic property if not in alcscript
self.fEL = getFloatPropertyOrDefault(obj,"el",-1.0)
if self.fEL < 0.0:
print " No Elasticity set"
else:
print " Elasticity:",self.fEL
# retrieve elasticity from alcscript
self.fEL = float(FindInDict(objscript,"physical.elasticity",-1.0))
if self.fEL == -1.0:
# retrieve elasticity from logic property if not in alcscript
self.fEL = getFloatPropertyOrDefault(obj,"el",-1.0)
if self.fEL < 0.0:
print " No Elasticity set"
# reset to 0.0
self.fEL = 0.0
else:
print " Elasticity:",self.fEL
Users browsing this forum: No registered users and 4 guests