demo.physics

来自「赫赫大名的 OGRE 游戏引擎」· PHYSICS 代码 · 共 82 行

PHYSICS
82 行
字号
floorPhysics
{
	bounce 0 0
	softness 0
	gravity false

	proxy box 500 1 500
}

boxPhysics
{
	bounce 0 0.01
	softness 0
	mass box 0.5 2 2 2
	proxy box 2 2 2
}

stepPhysics
{
	bounce 0 0.01
	softness 0
	mass box 0.5 50 2 10
	proxy box 100 2 100     
}

spherePhysics
{
	bounce 0 0.01
	softness 0
	mass sphere 0.8 1
	proxy sphere 1
}

jeepPhysics
{
        bounce 0 0.01
	softness 0       
	mass box 10 2 1 7
	proxy box 2 1 7
}

wheelPhysics
{
        bounce 0 0.01
	softness 0
	mass sphere 2 1
	proxy sphere 1
}

headPhysics
{
        bounce 0 0.01
	softness 0
	mass sphere 0.5 1
	proxy sphere 1
        friction 0.1
}

bodyPhysics
{
        bounce 0 0.01
	softness 0
	mass box 0.5 3 5 2
	proxy box 3 5 2
        friction 0.1
}

legPhysics
{
        bounce 0 0.01
	softness 0
	mass box 0.5 1 3 1
	proxy box 1 3 1
}

armPhysics
{
        bounce 0 0.01
	softness 0
	mass box 0.5 1 3 1
	proxy box 1 3 1
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?