Skip to content
Alessandro Febretti edited this page Jun 12, 2013 · 5 revisions

class SphereShape (extends SphereShape)

Wraps cyclops::SphereShape. Represents a sphere shape, with a specific radius.

[[module cyclops]] extends [[Entity]]

Methods

Method(s) Description
create(radius, subdivisions) static Returns true if an effect is set for the entity

Examples

Creation

	# Create a sphere with a radius on 1 meter, with a 4 subdivision level.
	s = SphereShape.create(1, 4)
	# Make the sphere half-transparent and move it
	s.getMaterial().setAlpha(0.5)
	s.setPosition(Vector3(0, 1.5, 0))
Clone this wiki locally